mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-09 17:18:18 +00:00
Utilities: Require OpenSSL >= 3.0.0 at configure time
The currently-vendored version of curl, when using OpenSSL, errors at build time without at least version 3. Fail-fast at configure instead. Fixes: #27902
This commit is contained in:
@@ -153,7 +153,7 @@ else()
|
||||
set(CURL_CA_BUNDLE "" CACHE FILEPATH "Path to SSL CA Certificate Bundle")
|
||||
set(CURL_CA_PATH "" CACHE PATH "Path to SSL CA Certificate Directory")
|
||||
mark_as_advanced(CURL_CA_BUNDLE CURL_CA_PATH)
|
||||
find_package(OpenSSL)
|
||||
find_package(OpenSSL 3.0.0)
|
||||
endif()
|
||||
if(NOT CMAKE_USE_SYSTEM_NGHTTP2)
|
||||
# Tell curl's FindNGHTTP2 module to use our library.
|
||||
|
||||
@@ -1009,7 +1009,7 @@ if(_use_core_foundation_and_core_services)
|
||||
endif()
|
||||
|
||||
if(CURL_USE_OPENSSL)
|
||||
find_package(OpenSSL)
|
||||
find_package(OpenSSL 3.0.0)
|
||||
if(NOT OpenSSL_FOUND)
|
||||
message(FATAL_ERROR
|
||||
"Could not find OpenSSL. Install an OpenSSL development package or "
|
||||
|
||||
Reference in New Issue
Block a user