We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c87f2b commit 64e391fCopy full SHA for 64e391f
tests/CMakeLists.txt
@@ -62,6 +62,9 @@ function (add_sigcpp_test TEST_SOURCE_FILE)
62
add_executable (${test_name} ${TEST_SOURCE_FILE} testutilities.cc)
63
target_link_libraries (${test_name} sigc-${SIGCXX_API_VERSION})
64
add_test (${test_name} ${CMAKE_CURRENT_BINARY_DIR}/${test_name})
65
+
66
+ # Help MSVC to find the library that the tests should link against.
67
+ set_tests_properties( ${test_name} PROPERTIES ENVIRONMENT "PATH=${sigc++_BINARY_DIR};$ENV{PATH}" )
68
endfunction (add_sigcpp_test)
69
70
foreach (test_file ${TEST_SOURCE_FILES})
0 commit comments