summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorLutz Helwing <lutz_helwing@mentor.com>2015-11-09 12:45:50 +0100
committerLutz Helwing <lutz_helwing@mentor.com>2015-11-18 07:57:31 +0100
commit768f440060d5d43bd75c0d7d9a70fa861820894f (patch)
treeac86a1ea29ce9c62a0d645b687805543f3b22f3e /src/system
parentd29b6be9496db80e37a452bd42dc7813f369c33e (diff)
downloadDLT-daemon-768f440060d5d43bd75c0d7d9a70fa861820894f.tar.gz
Linking library systemd instead of systemd-journal systemd-id128 if systemd version >= 209
Signed-off-by: Lutz Helwing <lutz_helwing@mentor.com>
Diffstat (limited to 'src/system')
-rw-r--r--src/system/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/system/CMakeLists.txt b/src/system/CMakeLists.txt
index 2213867..4cb9371 100644
--- a/src/system/CMakeLists.txt
+++ b/src/system/CMakeLists.txt
@@ -23,8 +23,13 @@ set(dlt_system_SRCS dlt-system.c dlt-system-options.c dlt-system-process-handlin
dlt-system-filetransfer.c dlt-system-logfile.c dlt-system-processes.c dlt-system-shell.c
dlt-system-syslog.c dlt-system-watchdog.c dlt-system-journal.c)
add_executable(dlt-system ${dlt_system_SRCS} ${systemd_SRCS})
+
if(WITH_SYSTEMD_JOURNAL)
- target_link_libraries(dlt-system dlt ${ZLIB_LIBRARIES} systemd-journal systemd-id128)
+ if(SYSTEMD_VERSION LESS 209)
+ target_link_libraries(dlt-system dlt ${ZLIB_LIBRARIES} systemd-journal systemd-id128)
+ else(SYSTEMD_VERSION LESS 209)
+ target_link_libraries(dlt-system dlt ${ZLIB_LIBRARIES} systemd)
+ endif(SYSTEMD_VERSION LESS 209)
else(WITH_SYSTEMD_JOURNAL)
target_link_libraries(dlt-system dlt ${ZLIB_LIBRARIES})
endif(WITH_SYSTEMD_JOURNAL)