Skip to content

Commit 219719c

Browse files
committed
Merge branch 'js/unit-test-oidtree-cmake-fix'
Build fix. * js/unit-test-oidtree-cmake-fix: cmake: fix build of `t-oidtree`
2 parents 76e018b + 8727215 commit 219719c

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
@@ -976,11 +976,12 @@ list(TRANSFORM test-reftable_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/")
976976

977977
#unit-tests
978978
add_library(unit-test-lib OBJECT ${CMAKE_SOURCE_DIR}/t/unit-tests/test-lib.c)
979+
add_library(unit-test-lib-oid OBJECT ${CMAKE_SOURCE_DIR}/t/unit-tests/lib-oid.c)
979980

980981
parse_makefile_for_scripts(unit_test_PROGRAMS "UNIT_TEST_PROGRAMS" "")
981982
foreach(unit_test ${unit_test_PROGRAMS})
982983
add_executable("${unit_test}" "${CMAKE_SOURCE_DIR}/t/unit-tests/${unit_test}.c")
983-
target_link_libraries("${unit_test}" unit-test-lib common-main)
984+
target_link_libraries("${unit_test}" unit-test-lib unit-test-lib-oid common-main)
984985
set_target_properties("${unit_test}"
985986
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/t/unit-tests/bin)
986987
if(MSVC)

0 commit comments

Comments
 (0)