Skip to content

Commit

Permalink
Simplify how to default CMAKE_BUILD_TYPE to Release.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpkfft committed Dec 22, 2024
1 parent d7d9d90 commit edbb546
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ addition, binding code may run slowly and produce large binaries.
.. code-block:: cmake
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")
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY VALUE Release)
endif()
Finding nanobind
Expand Down

0 comments on commit edbb546

Please sign in to comment.