mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-26 22:05:34 +00:00
Fixed test link errors on Debian 10.
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user