diff --git a/docs/building.rst b/docs/building.rst index 346ef5f0..6d70ee36 100644 --- a/docs/building.rst +++ b/docs/building.rst @@ -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