Skip to content

Commit 072eeb7

Browse files
committed
Add CMake bit to force build type
1 parent c20aaba commit 072eeb7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
2323

2424
# }}}
2525

26+
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
27+
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
28+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
29+
endif()
30+
2631
# {{{ Detect nanobind and import it
2732

2833
execute_process(

0 commit comments

Comments
 (0)