Revert "Fixed test link errors on Debian 10."

This reverts commit 5009fbfbe4.
This commit is contained in:
Alexander Shaduri
2022-02-15 14:01:51 +04:00
parent d1df4b2fad
commit 65e4c4f7ac
3 changed files with 7 additions and 10 deletions
+3 -4
View File
@@ -17,9 +17,8 @@ target_sources(applib_tests PRIVATE
test_app_pcrecpp.cpp
test_smartctl_version_parser.cpp
)
target_link_libraries(applib_tests
PUBLIC # must be public as the target is an object library
applib
Catch2
target_link_libraries(applib_tests PRIVATE
applib
Catch2
)
+3 -4
View File
@@ -18,9 +18,8 @@ target_sources(hz_tests PRIVATE
test_string_algo.cpp
test_string_num.cpp
)
target_link_libraries(hz_tests
PUBLIC # must be public as the target is an object library
hz
Catch2
target_link_libraries(hz_tests PRIVATE
hz
Catch2
)
+1 -2
View File
@@ -20,10 +20,9 @@ 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)