Skip to content

Commit

Permalink
Add CMake bit to force build type
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed May 20, 2024
1 parent c20aaba commit 072eeb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)

# }}}

if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()

# {{{ Detect nanobind and import it

execute_process(
Expand Down

0 comments on commit 072eeb7

Please sign in to comment.