cmake: verify minimum CMake version in `curl-config.cmake`
No binary (build failed)
—
(log yok)
| @@ -26,6 +26,11 @@ | |
| option(CURL_USE_PKGCONFIG "Enable pkg-config to detect @PROJECT_NAME@ dependencies. Default: @CURL_USE_PKGCONFIG@" | |
| "@CURL_USE_PKGCONFIG@") | |
| + | if(CMAKE_VERSION VERSION_LESS @CMAKE_MINIMUM_REQUIRED_VERSION@) |
| + | message(STATUS "@PROJECT_NAME@: @PROJECT_NAME@-specific Find modules require " |
| + | "CMake @CMAKE_MINIMUM_REQUIRED_VERSION@ or upper, found: ${CMAKE_VERSION}.") |
| + | endif() |
| + | |
| include(CMakeFindDependencyMacro) | |
| if("@USE_OPENSSL@") | |
| @@ -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 | |