From 5295ada91743ab3f6e5c38ecd4edf9b31dfa0440 Mon Sep 17 00:00:00 2001 From: Rick V Date: Tue, 25 Feb 2020 15:42:07 -0600 Subject: [PATCH] systemd is linux only --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c0839f993..164c89750 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,6 +226,7 @@ if(JEMALLOC) endif(JEMALLOC) +if (Linux) pkg_check_modules(SD libsystemd) # Default WITH_SYSTEMD to true if we found it option(WITH_SYSTEMD "enable systemd integration for sd_notify" ${SD_FOUND}) @@ -238,7 +239,7 @@ if(WITH_SYSTEMD) include_directories(${SD_INCLUDE_DIRS}) set(SD_LIBS ${SD_LDFLAGS}) endif() - +endif() option(SUBMODULE_CHECK "Enables checking that vendored library submodules are up to date" ON) if(SUBMODULE_CHECK)