Commit 72c3324c authored by louiz’'s avatar louiz’

Correctly use target_sources instead of target_link_libraries

parent e3730c5a
Pipeline #1319 passed with stages
in 8 minutes and 19 seconds
......@@ -249,8 +249,8 @@ add_executable(test_suite ${source_tests}
$<TARGET_OBJECTS:identd>)
set_target_properties(test_suite PROPERTIES EXCLUDE_FROM_ALL TRUE)
if(USE_DATABASE)
target_link_libraries(${PROJECT_NAME} $<TARGET_OBJECTS:database>)
target_link_libraries(test_suite $<TARGET_OBJECTS:database>)
target_sources(${PROJECT_NAME} PRIVATE $<TARGET_OBJECTS:database>)
target_sources(test_suite PRIVATE $<TARGET_OBJECTS:database>)
endif()
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment