diff --git a/CMakeLists.txt b/CMakeLists.txt index edec50eef9d5196fd53243d3a988c51093183a41..899148864b079845180d878fe6b09f3abdcafc4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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