diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2020-09-24 17:48:03 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-09-25 21:50:06 +0100 |
commit | 85ca1c535e0d22a19a9a2157f0269f3a84c14059 (patch) | |
tree | 9194fdf543542a3ecff8baa9f61adb255c630466 | |
parent | 933d02dce217d13074e189284bb1b3654b9186ac (diff) | |
download | openttd-85ca1c535e0d22a19a9a2157f0269f3a84c14059.tar.xz |
Codechange: Set CMAKE_BUILD_TYPE to default to debug if not otherwise set
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fd8fbc88..2c7131df0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,11 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) message(FATAL_ERROR "In-source builds not allowed. Please run \"cmake ..\" from the bin directory") endif() +# Debug mode by default. +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Debug) +endif() + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9) |