mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6126 from Icinga/fix/require-systemd-libs
Require systemd headers
This commit is contained in:
commit
5089b0dd7c
|
@ -44,6 +44,10 @@ application using a dist tarball (including notes for distributions):
|
|||
- Alpine: boost-dev
|
||||
* GNU bison (bison)
|
||||
* GNU flex (flex) >= 2.5.35
|
||||
* Systemd headers
|
||||
- Only required when using Systemd
|
||||
- Debian/Ubuntu: libsystemd-dev
|
||||
- RHEL/Fedora: systemd-devel
|
||||
|
||||
## Optional features
|
||||
|
||||
|
|
|
@ -97,6 +97,13 @@ if(ICINGA2_UNITY_BUILD)
|
|||
mkunity_target(base base base_SOURCES)
|
||||
endif()
|
||||
|
||||
if(HAVE_SYSTEMD)
|
||||
find_path(SYSTEMD_INCLUDE_DIR
|
||||
NAMES systemd/sd-daemon.h
|
||||
HINTS ${SYSTEMD_ROOT_DIR})
|
||||
include_directories(${SYSTEMD_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
add_library(base OBJECT ${base_SOURCES})
|
||||
|
||||
include_directories(${icinga2_SOURCE_DIR}/third-party/execvpe)
|
||||
|
|
Loading…
Reference in New Issue