From c462d9243bd667eb3a5e97f94b13377e80e47198 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 27 Sep 2024 09:29:47 -0400 Subject: 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. --- Source/Modules/CMakeBuildUtilities.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) -- cgit v0.12