cmake: verify minimum CMake version in curl-config.cmake

Show a message if the CMake version is lower than that when consuming
libcurl via the CMake config.

The minimum CMake version on consumption is for now the same as
the minimum required (v3.7) to build curl itself.

Ref: https://cmake.org/cmake/help/v3.7/variable/CMAKE_MINIMUM_REQUIRED_VERSION.html
Ref: #18704 (discussion)
Follow-up to 16f073ef49 #16973
Closes #19776
This commit is contained in:
Viktor Szakats 2025-11-30 23:22:59 +01:00
parent a2ebae61ca
commit c421c3e325
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 6 additions and 0 deletions

View file

@ -2309,6 +2309,7 @@ if(NOT CURL_DISABLE_INSTALL)
${_generated_version_config}")
# Consumed custom variables:
# CMAKE_MINIMUM_REQUIRED_VERSION
# CURLVERSION
# LIBCURL_PC_LIBS_PRIVATE_LIST
# LIB_NAME