Skip to content

Commit 64e391f

Browse files
committed
Build: tests: Let MSVC find the library
1 parent 8c87f2b commit 64e391f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ function (add_sigcpp_test TEST_SOURCE_FILE)
6262
add_executable (${test_name} ${TEST_SOURCE_FILE} testutilities.cc)
6363
target_link_libraries (${test_name} sigc-${SIGCXX_API_VERSION})
6464
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}" )
6568
endfunction (add_sigcpp_test)
6669

6770
foreach (test_file ${TEST_SOURCE_FILES})

0 commit comments

Comments
 (0)