From e89fea12d535450a3dd87dceaa6cf0f8abdd9616 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Sat, 2 Nov 2019 12:02:46 +0100 Subject: [PATCH] Disable IcingaDB on Windows Rationale: Masters running with IcingaDB are supported, agents are not. --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2d77926a..1eefc9938 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,9 +20,15 @@ option(ICINGA2_WITH_COMPAT "Build the compat module" ON) option(ICINGA2_WITH_LIVESTATUS "Build the Livestatus module" ON) option(ICINGA2_WITH_NOTIFICATION "Build the notification module" ON) option(ICINGA2_WITH_PERFDATA "Build the perfdata module" ON) -option(ICINGA2_WITH_ICINGADB "Build the IcingaDB module" ON) option(ICINGA2_WITH_TESTS "Run unit tests" ON) +# IcingaDB only is supported on modern Linux/Unix master systems +if(NOT WIN32) + option(ICINGA2_WITH_ICINGADB "Build the IcingaDB module" ON) +else() + option(ICINGA2_WITH_ICINGADB "Build the IcingaDB module" OFF) +endif() + option (USE_SYSTEMD "Configure icinga as native systemd service instead of a SysV initscript" OFF)