diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-04-11 00:50:38 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-04-11 00:50:38 +0800 |
| commit | 44ad3c8b36540c6b0b3144a21ac40310e163bb19 (patch) | |
| tree | ec2b75f68771fcbed8ba7450d30da1f05ebfc52c /etc/build_type.cmake | |
| download | rwebbrowser-44ad3c8b36540c6b0b3144a21ac40310e163bb19.tar.gz rwebbrowser-44ad3c8b36540c6b0b3144a21ac40310e163bb19.tar.xz | |
feat: initialize project structure with CMake build system, C++23 support, and core browser scaffolding
Diffstat (limited to 'etc/build_type.cmake')
| -rw-r--r-- | etc/build_type.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/build_type.cmake b/etc/build_type.cmake new file mode 100644 index 0000000..69d019f --- /dev/null +++ b/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.") |
