diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-03-09 21:49:43 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-03-09 21:49:43 +0800 |
| commit | 99ac5b94e40b1b95be6ebc061f6dcee4d4dcfed5 (patch) | |
| tree | a5752bac23c6c1cbfb23130e2e51c1e1155723ec /raytracing/etc/build_type.cmake | |
| parent | 82be1151b5c9e49ccba238ec6e4b18a2cb8fb23d (diff) | |
| download | rcc-project-99ac5b94e40b1b95be6ebc061f6dcee4d4dcfed5.tar.gz rcc-project-99ac5b94e40b1b95be6ebc061f6dcee4d4dcfed5.tar.xz | |
Establish a well-structured modern C++ project architecture
Focus on code quality: Treat strict warnings as errors, memory checks with Sanitizers, Clang formatting and static analysis
Performance optimization: LTO, ccache
Diffstat (limited to 'raytracing/etc/build_type.cmake')
| -rw-r--r-- | raytracing/etc/build_type.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/raytracing/etc/build_type.cmake b/raytracing/etc/build_type.cmake new file mode 100644 index 0000000..69d019f --- /dev/null +++ b/raytracing/etc/build_type.cmake @@ -0,0 +1,11 @@ +set(default_build_type "Debug") + +if (NOT (CMAKE_BUILD_TYPE_SHADOW STREQUAL CMAKE_BUILD_TYPE)) + if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + message (STATUS "Setting build type to '${default_build_type}'") + set (CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the type of build." FORCE) + endif () + set (CMAKE_BUILD_TYPE_SHADOW ${CMAKE_BUILD_TYPE} CACHE STRING "used to detect changes in build type" FORCE) +endif () + +message (STATUS "Building in '${CMAKE_BUILD_TYPE}' mode.") |
