aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlouiz’2018-06-08 18:03:55 (GMT)
committerlouiz’2018-07-03 18:29:18 (GMT)
commit41de62a96097295c7b9312aa6602b33ab34787fe (patch)
treeee49e297fd79316271f1fec8624b854acb9e0b17
parenta5c12e1f0207173ff7cdf752f3f54565898c4160 (diff)
downloadbiboumi-v8.tar.gz
biboumi-v8.tar.xz
Correctly use target_sources instead of target_link_librariesrefs/keep-around/41de62a96097295c7b9312aa6602b33ab34787fev8
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7c09090..a27773c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()
#