make release builds by default

This commit is contained in:
Lion Kortlepel 2023-12-09 19:21:52 +01:00
parent 6b31ba35fd
commit 7f11d0f002
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -126,9 +126,10 @@ include(FindThreads)
# enables compile_commands.json for clang-related tools (such as the clang LS) # enables compile_commands.json for clang-related tools (such as the clang LS)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# build debug builds by default (if not specified otherwise) # build release builds by default (if not specified otherwise)
if(NOT CMAKE_BUILD_TYPE) if(NOT DEFINED CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug") message(NOTICE "No build type specified, defaulting to 'Release'")
set(CMAKE_BUILD_TYPE "Release")
endif() endif()
if(UNIX) if(UNIX)