diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-02-27 22:14:15 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-02-27 22:14:15 +0000 |
| commit | ca9aeaf93afaa610aab1ce585daa20ffcf27d3a7 (patch) | |
| tree | f82d338284bc7a986445e9f76c3cd38d240871c8 | |
| parent | Properly defining __forceinline in non-Windows builds (fixed https://github.c... (diff) | |
| download | DiligentCore-ca9aeaf93afaa610aab1ce585daa20ffcf27d3a7.tar.gz DiligentCore-ca9aeaf93afaa610aab1ce585daa20ffcf27d3a7.zip | |
Defaulting CMAKE_BUILD_TYPE to Debug if it is not set (related to https://github.com/DiligentGraphics/DiligentEngine/issues/70)
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d4eb96b..37c15ee0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,11 @@ include(GNUInstallDirs) set_property(GLOBAL PROPERTY USE_FOLDERS ON) +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Debug CACHE STRING "" FORCE) + message(STATUS "CMAKE_BUILD_TYPE is not specified, default to Debug. Note that this is only relevant for single-configuration generators (such as Makefile Generators and Ninja).") +endif() + set(DEBUG_CONFIGURATIONS DEBUG CACHE INTERNAL "Debug configurations") set(RELEASE_CONFIGURATIONS RELEASE RELWITHDEBINFO MINSIZEREL CACHE INTERNAL "Release configurations") |
