File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11# Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
22
3- cmake_minimum_required (VERSION 2.8.8)
3+ # CMake 3.8 is required, CMake policy compatibility was verified up to 3.17.
4+ cmake_minimum_required (VERSION 3.8...3.17)
45set (BOOST_MIN_VERSION "1.66.0" )
56
67project (icinga2)
@@ -13,6 +14,10 @@ if(NOT CMAKE_BUILD_TYPE)
1314 FORCE)
1415endif ()
1516
17+ # Include symbols in executables so that function names can be printed in stack traces, for example in crash dumps.
18+ set (CMAKE_ENABLE_EXPORTS ON ) # Added in CMake 3.4
19+ set (CMAKE_EXECUTABLE_ENABLE_EXPORTS ON ) # Added in CMake 3.27 and supersedes the above one.
20+
1621option (ICINGA2_WITH_MYSQL "Build the MySQL IDO module" ON )
1722option (ICINGA2_WITH_PGSQL "Build the PostgreSQL IDO module" ON )
1823option (ICINGA2_WITH_CHECKER "Build the checker module" ON )
@@ -225,7 +230,6 @@ if(WIN32)
225230 list (APPEND base_DEPS ws2_32 dbghelp shlwapi msi)
226231endif ()
227232
228- set (CMAKE_MACOSX_RPATH 1)
229233set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH} ;${CMAKE_INSTALL_FULL_LIBDIR} /icinga2" )
230234
231235if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ set_target_properties(
1919 FOLDER Bin
2020 OUTPUT_NAME icinga2-installer
2121 LINK_FLAGS "/SUBSYSTEM:WINDOWS"
22+
23+ # Use a statically-linked runtime library as this binary is run during the installation process where the other DLLs
24+ # may not have been installed already and the system-provided version may be too old.
25+ MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>"
2226)
2327
2428target_link_libraries (icinga-installer shlwapi)
You can’t perform that action at this time.
0 commit comments