Skip to content

Commit 6dad127

Browse files
committed
Tell user when build type defaults to debug.
1 parent eb95f2e commit 6dad127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/ConfigSafeGuards.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
21
# guard against in-source builds
32
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
43
message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there.")
54
endif()
65

76
# guard against bad build-type strings
8-
if(NOT CMAKE_BUILD_TYPE)
7+
if (NOT CMAKE_BUILD_TYPE)
8+
message(STATUS "No build type selected, default to Debug")
99
set(CMAKE_BUILD_TYPE "Debug")
1010
endif()
1111

0 commit comments

Comments
 (0)