diff options
author | Didier Raboud <odyx@debian.org> | 2012-12-19 16:52:11 +0100 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2012-12-19 16:52:17 +0100 |
commit | 3c976c040b48caa9f3e75d12a6502e39193ce9a6 (patch) | |
tree | 84274fd4718d78613beb1b92e4cbb51e64e1fefc /src/math/test | |
parent | fec2c1028a7d0f46f38c985c18d8cf778456f643 (diff) | |
download | colobot-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 'src/math/test')
-rw-r--r-- | src/math/test/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/math/test/CMakeLists.txt b/src/math/test/CMakeLists.txt index 5bc9027..4f7813e 100644 --- a/src/math/test/CMakeLists.txt +++ b/src/math/test/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 2.8) -set(CMAKE_BUILD_TYPE debug) +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE debug) +endif(NOT CMAKE_BUILD_TYPE) set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wold-style-cast -std=gnu++0x") include_directories( |