~singpolyma/biboumi

72c3324cf38f0173676f123ed4d8e3418c66f14b — louiz’ 6 years ago e3730c5
Correctly use target_sources instead of target_link_libraries
1 files changed, 2 insertions(+), 2 deletions(-)

M CMakeLists.txt
M CMakeLists.txt => CMakeLists.txt +2 -2
@@ 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()

#