Skip to content

Commit df0da4d

Browse files
committed
Merge branch 'cmake-vs-t-oidtree'
A compile fix for the CMake/Visual Studio build. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 283fdb4 + 18b605d commit df0da4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/buildsystems/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,11 +1003,12 @@ list(TRANSFORM test-reftable_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/")
10031003

10041004
#unit-tests
10051005
add_library(unit-test-lib OBJECT ${CMAKE_SOURCE_DIR}/t/unit-tests/test-lib.c)
1006+
add_library(unit-test-lib-oid OBJECT ${CMAKE_SOURCE_DIR}/t/unit-tests/lib-oid.c)
10061007

10071008
parse_makefile_for_scripts(unit_test_PROGRAMS "UNIT_TEST_PROGRAMS" "")
10081009
foreach(unit_test ${unit_test_PROGRAMS})
10091010
add_executable("${unit_test}" "${CMAKE_SOURCE_DIR}/t/unit-tests/${unit_test}.c")
1010-
target_link_libraries("${unit_test}" unit-test-lib common-main)
1011+
target_link_libraries("${unit_test}" unit-test-lib unit-test-lib-oid common-main)
10111012
set_target_properties("${unit_test}"
10121013
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/t/unit-tests/bin)
10131014
if(MSVC)

0 commit comments

Comments
 (0)