diff options
author | Brent Cook <busterb@gmail.com> | 2023-07-27 06:10:20 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-08-13 21:01:49 -0500 |
commit | 125c54cdd79670c6a0b762d8534488a02383764e (patch) | |
tree | 257eb7ac288f0d8e16294df5344252b85a9131e9 | |
parent | 2d7042d9e447c24d72c1424738edd0b1c383e56a (diff) | |
download | portable-125c54cdd79670c6a0b762d8534488a02383764e.tar.gz portable-125c54cdd79670c6a0b762d8534488a02383764e.tar.bz2 portable-125c54cdd79670c6a0b762d8534488a02383764e.zip |
set default build type to 'Release'
-rw-r--r-- | CMakeLists.txt | 15 |
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 @@ | |||
1 | cmake_minimum_required (VERSION 3.20.0) | ||
1 | if(MSVC) | 2 | if(MSVC) |
2 | cmake_minimum_required (VERSION 3.16.4) | ||
3 | cmake_policy(SET CMP0091 NEW) | 3 | cmake_policy(SET CMP0091 NEW) |
4 | else() | ||
5 | cmake_minimum_required (VERSION 3.0) | ||
6 | endif() | 4 | endif() |
7 | 5 | ||
8 | project (LibreSSL C ASM) | 6 | project (LibreSSL C ASM) |
@@ -51,6 +49,17 @@ if(NOT LIBRESSL_SKIP_INSTALL) | |||
51 | set( ENABLE_LIBRESSL_INSTALL ON ) | 49 | set( ENABLE_LIBRESSL_INSTALL ON ) |
52 | endif(NOT LIBRESSL_SKIP_INSTALL) | 50 | endif(NOT LIBRESSL_SKIP_INSTALL) |
53 | 51 | ||
52 | # Set a default build type if none was specified | ||
53 | set(default_build_type "Release") | ||
54 | |||
55 | if(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") | ||
62 | endif() | ||
54 | 63 | ||
55 | set(BUILD_NC true) | 64 | set(BUILD_NC true) |
56 | 65 | ||