diff --git a/backend/tests/CMakeLists.txt b/backend/tests/CMakeLists.txt index e65e4970..fc7a2e8e 100644 --- a/backend/tests/CMakeLists.txt +++ b/backend/tests/CMakeLists.txt @@ -17,7 +17,11 @@ if(NOT EXISTS ${BWIPP_PS}) endif() add_library(testcommon testcommon.c testcommon.h) -target_link_libraries(testcommon zint) +if(ZINT_STATIC) + target_link_libraries(testcommon zint-static) +else() + target_link_libraries(testcommon zint) +endif() macro(zint_add_test test_name test_command) set(ADDITIONAL_LIBS "${ARGN}" ${LIBRARY_FLAGS})