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)