We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c648b03 commit 5a0152aCopy full SHA for 5a0152a
CMakeLists.txt
@@ -56,8 +56,8 @@ endif()
56
57
# ====
58
59
-# Ensures that CMAKE_BUILD_TYPE has a default value
60
-if(NOT DEFINED CMAKE_BUILD_TYPE)
+# Ensure that CMAKE_BUILD_TYPE has a value specified for single configuration generators.
+if(NOT DEFINED CMAKE_BUILD_TYPE AND NOT DEFINED CMAKE_CONFIGURATION_TYPES)
61
set(CMAKE_BUILD_TYPE Release CACHE STRING
62
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel Coverage.")
63
endif()
0 commit comments