mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Require systemd headers
Only mandatory if using systemd
This commit is contained in:
parent
98bcca5e17
commit
01c7f20170
@ -44,6 +44,10 @@ application using a dist tarball (including notes for distributions):
|
|||||||
- Alpine: boost-dev
|
- Alpine: boost-dev
|
||||||
* GNU bison (bison)
|
* GNU bison (bison)
|
||||||
* GNU flex (flex) >= 2.5.35
|
* GNU flex (flex) >= 2.5.35
|
||||||
|
* Systemd headers
|
||||||
|
- Only required when using Systemd
|
||||||
|
- Debian/Ubuntu: libsystemd-dev
|
||||||
|
- RHEL/Fedora: systemd-devel
|
||||||
|
|
||||||
## Optional features
|
## Optional features
|
||||||
|
|
||||||
|
@ -97,6 +97,13 @@ if(ICINGA2_UNITY_BUILD)
|
|||||||
mkunity_target(base base base_SOURCES)
|
mkunity_target(base base base_SOURCES)
|
||||||
endif()
|
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})
|
add_library(base OBJECT ${base_SOURCES})
|
||||||
|
|
||||||
include_directories(${icinga2_SOURCE_DIR}/third-party/execvpe)
|
include_directories(${icinga2_SOURCE_DIR}/third-party/execvpe)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user