Fix using Debug build type by default

master
Piotr Dziwinski 2015-07-24 22:56:02 +02:00
parent ea2e4750b7
commit 1e4b88a309
1 changed files with 2 additions and 2 deletions

View File

@ -207,9 +207,9 @@ option(COLOBOT_LINT_BUILD "Generate some additional CMake targets for use with c
# Default build type if not given is debug
if(NOT DEFINED CMAKE_BUILD_TYPE)
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "Build type not specified - assuming debug")
set(CMAKE_BUILD_TYPE debug)
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()
# Warn about development build