set(ICINGA2_UNITY_BUILD FALSE)
endif()
+if(NOT MSVC)
+ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
+endif()
+
check_function_exists(vfork HAVE_VFORK)
check_function_exists(backtrace_symbols HAVE_BACKTRACE_SYMBOLS)
check_function_exists(pipe2 HAVE_PIPE2)
- `ICINGA2_GROUP`: The group Icinga 2 should run as; defaults to `icinga`
- `ICINGA2_GIT_VERSION_INFO`: Whether to use Git to determine the version number; defaults to `ON`
- `ICINGA2_COMMAND_GROUP`: The command group Icinga 2 should use; defaults to `icingacmd`
-- `ICINGA2_UNITY_BUILD`: Whether to perform a unity build
+- `ICINGA2_UNITY_BUILD`: Whether to perform a unity build; defaults to `OFF`
- `ICINGA2_PLUGINDIR`: The path for the Monitoring Plugins project binaries; defaults to `/usr/lib/nagios/plugins`
- `ICINGA2_RUNDIR`: The location of the "run" directory; defaults to `CMAKE_INSTALL_LOCALSTATEDIR/run`
- `CMAKE_INSTALL_SYSCONFDIR`: The configuration directory; defaults to `CMAKE_INSTALL_PREFIX/etc`
appName = appName.SubStr(3, appName.GetLength() - 3);
std::cout << appName << " " << "- The Icinga 2 network monitoring daemon (version: "
- << Application::GetVersion() << ")" << std::endl << std::endl;
+ << Application::GetVersion()
+#ifdef _DEBUG
+ << "; debug"
+#endif /* _DEBUG */
+ << ")" << std::endl << std::endl;
if (!command || vm.count("help")) {
std::cout << "Usage:" << std::endl
# pragma warning(disable:4251)
# pragma warning(disable:4275)
# pragma warning(disable:4345)
-#else /* _MSC_VER */
-# ifndef NDEBUG
-# define _DEBUG
-# endif /* NDEBUG */
#endif /* _MSC_VER */
#include "config.h"
Application::MakeVariablesConstant();
Log(LogInformation, "cli")
- << "Icinga application loader (version: " << Application::GetVersion() << ")";
+ << "Icinga application loader (version: " << Application::GetVersion()
+#ifdef _DEBUG
+ << "; debug"
+#endif /* _DEBUG */
+ << ")";
String appType = LoadAppType(Application::GetApplicationType());