Set default build type to RelWithDebInfo.

Fixes #5112
This commit is contained in:
Gunnar Beutner 2013-11-20 16:36:11 +01:00
parent 7b1d34dae7
commit e5fba1d881
1 changed files with 6 additions and 0 deletions

View 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})