From 1e4b88a309e68827e0fbd6f10014cf5a34bae3c4 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Fri, 24 Jul 2015 22:56:02 +0200 Subject: [PATCH] Fix using Debug build type by default --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aa93067d..ed74bcfe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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