aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-07-27 06:10:20 -0500
committerBrent Cook <busterb@gmail.com>2023-08-13 21:01:49 -0500
commit125c54cdd79670c6a0b762d8534488a02383764e (patch)
tree257eb7ac288f0d8e16294df5344252b85a9131e9
parent2d7042d9e447c24d72c1424738edd0b1c383e56a (diff)
downloadportable-125c54cdd79670c6a0b762d8534488a02383764e.tar.gz
portable-125c54cdd79670c6a0b762d8534488a02383764e.tar.bz2
portable-125c54cdd79670c6a0b762d8534488a02383764e.zip
set default build type to 'Release'
-rw-r--r--CMakeLists.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c5b880b..272cf6a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,8 +1,6 @@
1cmake_minimum_required (VERSION 3.20.0)
1if(MSVC) 2if(MSVC)
2 cmake_minimum_required (VERSION 3.16.4)
3 cmake_policy(SET CMP0091 NEW) 3 cmake_policy(SET CMP0091 NEW)
4else()
5 cmake_minimum_required (VERSION 3.0)
6endif() 4endif()
7 5
8project (LibreSSL C ASM) 6project (LibreSSL C ASM)
@@ -51,6 +49,17 @@ if(NOT LIBRESSL_SKIP_INSTALL)
51 set( ENABLE_LIBRESSL_INSTALL ON ) 49 set( ENABLE_LIBRESSL_INSTALL ON )
52endif(NOT LIBRESSL_SKIP_INSTALL) 50endif(NOT LIBRESSL_SKIP_INSTALL)
53 51
52# Set a default build type if none was specified
53set(default_build_type "Release")
54
55if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
56 message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
57 set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE
58 STRING "Choose the type of build." FORCE)
59 # Set the possible values of build type for cmake-gui
60 set_property(CACHE CMAKE_BUILD_TYPE PROPERTY
61 STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
62endif()
54 63
55set(BUILD_NC true) 64set(BUILD_NC true)
56 65