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 eb95f2e commit 6dad127Copy full SHA for 6dad127
cmake/ConfigSafeGuards.cmake
@@ -1,11 +1,11 @@
1
-
2
# guard against in-source builds
3
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
4
message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there.")
5
endif()
6
7
# guard against bad build-type strings
8
-if(NOT CMAKE_BUILD_TYPE)
+if (NOT CMAKE_BUILD_TYPE)
+ message(STATUS "No build type selected, default to Debug")
9
set(CMAKE_BUILD_TYPE "Debug")
10
11
0 commit comments