From dc9b74f6e5361004f5fe5b309873bf28271fb572 Mon Sep 17 00:00:00 2001 From: pouillot Date: Sun, 24 Mar 2013 14:38:12 +0000 Subject: [PATCH] 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 --- cmake/options.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmake/options.cmake b/cmake/options.cmake index aa2db5506..7baf5719b 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -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)