build/cmake: don't use testing on MSVC

This commit is contained in:
Adrien Beraud authored and Adrien Béraud committed 2023-04-20 22:41:35 -04:00
1 parent 47691b8242
commit d9c5ff9624
1 file changed
+1 -1
+1 -1
View File
@@ -434,7 +434,7 @@ install (EXPORT opendht DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/opendht FILE o
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/opendhtConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/opendht)
# Unit tests
if (BUILD_TESTING)
if (BUILD_TESTING AND NOT MSVC)
pkg_search_module(Cppunit REQUIRED IMPORTED_TARGET cppunit)
# unit testing
list (APPEND test_FILES