Add a default CMAKE_BUILD_TYPE (#5691) (#5692)

This commit is contained in:
Anthony Moore
2024-12-19 15:17:44 -05:00
committed by GitHub
parent 74d5d008bb
commit 5f1df5b389
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -21,6 +21,11 @@ project(
LANGUAGES CXX
)
# Set default build type to Release if not specified
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type" FORCE)
endif()
option(
DEBUG_AND_RELEASE_AND_COVERAGE
"Builds both the debug and release binaries, overriding CMAKE_BUILD_TYPE. Not supported under MSBuild."
+1
View File
@@ -20,6 +20,7 @@ Andrei Kostovski
Andrew Miloradovsky
Andrew Nolte
Anthony Donlon
Anthony Moore
Arkadiusz Kozdra
Arthur Rosa
Aylon Chaim Porat