]> granicus.if.org Git - icinga2/commitdiff
Set default build type to RelWithDebInfo.
authorGunnar Beutner <gunnar@beutner.name>
Wed, 20 Nov 2013 15:36:11 +0000 (16:36 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 20 Nov 2013 15:36:11 +0000 (16:36 +0100)
Fixes #5112

CMakeLists.txt

index 4ccb4c77db59884bff0a639ab90c56252405166a..0b3f8e63284ada1715464fc08444a72e19934c52 100644 (file)
@@ -19,6 +19,12 @@ cmake_minimum_required(VERSION 2.6)
 project(icinga2)
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
 
+if(NOT CMAKE_BUILD_TYPE)
+  set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
+      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
+      FORCE)
+endif()
+
 file(STRINGS icinga2.spec VERSION_LINE REGEX "^Version: ")
 string(REPLACE "Version: " "" ICINGA2_VERSION ${VERSION_LINE})