diff --git a/src/cmd/CMakeLists.txt b/src/cmd/CMakeLists.txt index 91aabdab5..7f5935985 100644 --- a/src/cmd/CMakeLists.txt +++ b/src/cmd/CMakeLists.txt @@ -40,7 +40,7 @@ gz_build_tests(TYPE UNIT SOURCES ${gtest_sources} LIB_DEPS ${EXTRA_TEST_LIB_DEPS}) foreach(test ${test_list}) - target_link_libraries(${test} gz) + target_link_libraries(${test} gz gz-utils${GZ_UTILS_VER}::gz-utils${GZ_UTILS_VER}) # Inform each test of its output directory so it knows where to call the # auxiliary files from. Using a generator expression here is useful for