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:
Tyler Yankee
2026-06-26 19:47:32 -04:00
parent 5a511ba6f7
commit 54686cae64
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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 "