From 892325dbc0983a18d5d16a10faefc0e982bf9660 Mon Sep 17 00:00:00 2001 From: Jiri Popek Date: Sat, 2 Feb 2019 23:03:37 +0100 Subject: Travis CI: build with systemd enabled (#97) * Travis CI: build with systemd enabled * fix the 'sd_booted' linker issue --- tests/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 50cca4f..56a21b7 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -20,6 +20,10 @@ endif() set(DLT_LIBRARIES ${LIBRARIES} dlt) set(DLT_DAEMON_LIBRARIES ${LIBRARIES} dlt_daemon) +if(WITH_SYSTEMD OR WITH_SYSTEMD_WATCHDOG) + set(DLT_DAEMON_LIBRARIES ${DLT_DAEMON_LIBRARIES} systemd) +endif() + add_executable(gtest_dlt_common gtest_dlt_common.cpp) add_executable(gtest_dlt_user gtest_dlt_user.cpp) add_executable(gtest_dlt_daemon_common gtest_dlt_daemon_common.cpp ../src/daemon/dlt_daemon_common.c) -- cgit v1.2.1