[cmake] set default build type

set with CACHE STRING FORCE to properly be picked up by configuration
tools
This commit is contained in:
akallabeth
2023-08-03 09:45:43 +02:00
committed by akallabeth
parent 0e458c8c2c
commit 8470b6ea26
9 changed files with 41 additions and 20 deletions

View File

@@ -65,8 +65,8 @@ include(SetFreeRDPCMakeInstallDir)
include(CMakePackageConfigHelpers)
include(GNUInstallDirsWrapper)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "project default" FORCE)
endif()
if (NOT IOS)