summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2012-12-19 16:52:11 +0100
committerDidier Raboud <odyx@debian.org>2012-12-19 16:52:17 +0100
commit3c976c040b48caa9f3e75d12a6502e39193ce9a6 (patch)
tree84274fd4718d78613beb1b92e4cbb51e64e1fefc /CMakeLists.txt
parentfec2c1028a7d0f46f38c985c18d8cf778456f643 (diff)
downloadcolobot-3c976c040b48caa9f3e75d12a6502e39193ce9a6.tar.gz
colobot-3c976c040b48caa9f3e75d12a6502e39193ce9a6.tar.bz2
colobot-3c976c040b48caa9f3e75d12a6502e39193ce9a6.zip
Don't enforce CMake build type on users.
Only set CMAKE_BUILD_TYPE to Debug when no value is provided.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4640db6..96ae055 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,7 +16,9 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${colobot_SOURCE_DIR}/cmake")
##
# Global build type
-set(CMAKE_BUILD_TYPE debug)
+if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE debug)
+endif(NOT CMAKE_BUILD_TYPE)
# Global compile flags
# These are specific to GCC/MinGW; for other compilers, change as necessary