← Commit list

c421c3e325

Viktor Szakats
Viktor Szakats
2025-12-01
SUCCESS Duration: 175s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

CMake/curl-config.cmake.in+5 -0
@@ -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@")
CMakeLists.txt+1 -0
@@ -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