Skip to content

Commit dcf3a62

Browse files
dschoGit for Windows Build Agent
authored andcommitted
fixup??? make it work with the CLAR_TEST_OBJS?
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 04bfb18 commit dcf3a62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/buildsystems/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,10 +1030,14 @@ parse_makefile_for_sources(unit-test_SOURCES ${CMAKE_SOURCE_DIR}/Makefile "UNIT_
10301030
list(TRANSFORM unit-test_SOURCES REPLACE "\\$\\(UNIT_TEST_DIR\\)/" "${CMAKE_SOURCE_DIR}/t/unit-tests/")
10311031
add_library(unit-test-lib STATIC ${unit-test_SOURCES})
10321032

1033+
parse_makefile_for_sources(clar-test_SOURCES ${CMAKE_SOURCE_DIR}/Makefile "CLAR_TEST_OBJS")
1034+
list(TRANSFORM clar-test_SOURCES REPLACE "\\$\\(UNIT_TEST_DIR\\)/" "${CMAKE_SOURCE_DIR}/t/unit-tests/")
1035+
add_library(clar-test-lib STATIC ${clar-test_SOURCES})
1036+
10331037
parse_makefile_for_scripts(unit_test_PROGRAMS "UNIT_TEST_PROGRAMS" "")
10341038
foreach(unit_test ${unit_test_PROGRAMS})
10351039
add_executable("${unit_test}" "${CMAKE_SOURCE_DIR}/t/unit-tests/${unit_test}.c")
1036-
target_link_libraries("${unit_test}" unit-test-lib common-main)
1040+
target_link_libraries("${unit_test}" unit-test-lib clar-test-lib common-main)
10371041
set_target_properties("${unit_test}"
10381042
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/t/unit-tests/bin)
10391043
if(MSVC)

0 commit comments

Comments
 (0)