Fixed test link errors on Debian 10.

This commit is contained in:
Alexander Shaduri
2022-02-15 13:42:43 +04:00
parent cbfcf2bb3c
commit 5009fbfbe4
3 changed files with 10 additions and 7 deletions
+4 -3
View File
@@ -17,8 +17,9 @@ target_sources(applib_tests PRIVATE
test_app_pcrecpp.cpp
test_smartctl_version_parser.cpp
)
target_link_libraries(applib_tests PRIVATE
applib
Catch2
target_link_libraries(applib_tests
PUBLIC # must be public as the target is an object library
applib
Catch2
)
+4 -3
View File
@@ -18,8 +18,9 @@ target_sources(hz_tests PRIVATE
test_string_algo.cpp
test_string_num.cpp
)
target_link_libraries(hz_tests PRIVATE
hz
Catch2
target_link_libraries(hz_tests
PUBLIC # must be public as the target is an object library
hz
Catch2
)
+2 -1
View File
@@ -20,9 +20,10 @@ target_sources(test_all PRIVATE
)
target_link_libraries(test_all PRIVATE
libdebug
Catch2
# Object libraries containing tests
applib_tests
hz_tests
Catch2
)
if (NOT CMAKE_CROSSCOMPILING)