summaryrefslogtreecommitdiffstats
path: root/Source/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-09-27 13:29:47 (GMT)
committerBrad King <brad.king@kitware.com>2024-09-27 14:32:33 (GMT)
commitc462d9243bd667eb3a5e97f94b13377e80e47198 (patch)
tree30370004375404cf00a192ec05e7b50bff5d50de /Source/Modules
parentf7cdfa9938dea4abc40fea558e486cb499c8bcf6 (diff)
downloadCMake-c462d9243bd667eb3a5e97f94b13377e80e47198.zip
CMake-c462d9243bd667eb3a5e97f94b13377e80e47198.tar.gz
CMake-c462d9243bd667eb3a5e97f94b13377e80e47198.tar.bz2
CYGWIN,MSYS: Build CMake with OpenSSL by default
Extend the changes from commit 190a5fdffd (Automatically use OpenSSL by default on Linux and FreeBSD if available, 2016-02-26, v3.6.0-rc1~301^2) and commit dd3e476786 (OpenSSL: Issue an error if OpenSSL is not found, 2019-07-17, v3.16.0-rc1~379^2) to cover builds targeting the CYGWIN and MSYS runtime platforms.
Diffstat (limited to 'Source/Modules')
-rw-r--r--Source/Modules/CMakeBuildUtilities.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Modules/CMakeBuildUtilities.cmake b/Source/Modules/CMakeBuildUtilities.cmake
index 9744bb3..09d8250 100644
--- a/Source/Modules/CMakeBuildUtilities.cmake
+++ b/Source/Modules/CMakeBuildUtilities.cmake
@@ -150,7 +150,7 @@ else()
endif()
set(_CMAKE_USE_OPENSSL_DEFAULT OFF)
if(NOT DEFINED CMAKE_USE_OPENSSL AND NOT WIN32 AND NOT APPLE
- AND CMAKE_SYSTEM_NAME MATCHES "(Linux|FreeBSD)")
+ AND CMAKE_SYSTEM_NAME MATCHES "(Linux|FreeBSD|CYGWIN|MSYS)")
set(_CMAKE_USE_OPENSSL_DEFAULT ON)
endif()
option(CMAKE_USE_OPENSSL "Use OpenSSL." ${_CMAKE_USE_OPENSSL_DEFAULT})