diff options
author | Shauren <shauren.trinity@gmail.com> | 2020-04-16 17:53:36 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2020-04-16 17:53:36 +0200 |
commit | 369b618d4f160816818681ed7e41063e2d9ba5b5 (patch) | |
tree | 228bb8f6460b5b0d8e0d83811a54e510dc98e91a /CMakeLists.txt | |
parent | 01c68b2aa2ed25ea9b4c007f238a0e958f6525b1 (diff) |
Build system: Support new in cmake 3.17 Ninja Multi-Config generator
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1bc3748ce1d..0dfb15dae85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,10 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/dep/cotire/CMake") # build in Release-mode by default if not explicitly set -if( NOT CMAKE_BUILD_TYPE ) +if(CMAKE_GENERATOR STREQUAL "Ninja Multi-Config") + set(CMAKE_DEFAULT_BUILD_TYPE "RelWithDebInfo" CACHE INTERNAL "") +endif() +if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "RelWithDebInfo") endif() |