Skip to content

Commit 2ba3024

Browse files
committed
fix: add default build type
1 parent 55eb3ab commit 2ba3024

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
3030
set(CMAKE_CXX_EXTENSIONS OFF)
3131
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
3232

33-
if(NOT CMAKE_BUILD_TYPE)
33+
if(NOT CMAKE_BUILD_TYPE MATCHES "Debug|Devel|MinSizeRel|RelWithDebInfo|Release")
34+
message(STATUS "CMAKE_BUILD_TYPE not set, defaulting to Debug.")
3435
set(CMAKE_BUILD_TYPE Debug)
3536
endif()
3637

0 commit comments

Comments
 (0)