Re #58 Default build type / configuration for makefile-style builds is now 'Release' (if not specified in CMake command line or through ccmake)

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5359 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f79ebea98d766ab8f79a1fd455e65d6886911c37
Former-commit-id: 7d3946e83b2aaf3ea9bbd3a392016b616a6cf6e9
This commit is contained in:
pouillot 2013-03-24 14:38:12 +00:00
parent 67f7799da0
commit dc9b74f6e5

View file

@ -46,6 +46,16 @@ MACRO(ADD_SD_COMPILE_OPTIONS)
# Build options (do it only once).
IF(NOT _ALREADY_DONE)
# Default build configuration.
IF(NOT MSVC)
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
FORCE)
ENDIF()
MESSAGE(STATUS "Build configuration : ${CMAKE_BUILD_TYPE}")
ENDIF(NOT MSVC)
# CMake options.
SET(OPTION_CHECK_CONTENTS false CACHE BOOL "Set to On if you don't want the build to be stopped by missing optional contents folders")
MARK_AS_ADVANCED(OPTION_CHECK_CONTENTS)