1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 03:48:02 +08:00

curl: Set build options the way we need for CMake

Set options added by the update to curl 8.14.1.
This commit is contained in:
Brad King
2025-06-04 14:01:12 -04:00
parent cebb60188f
commit 0112a49bfa
2 changed files with 14 additions and 1 deletions

View File

@@ -41,7 +41,9 @@ if(ANDROID)
else()
set(HAVE_ARC4RANDOM 0)
endif()
if(0) # XXX(cmake): cache this result for nghttp2
set(HAVE_ARPA_INET_H 1)
endif() # XXX(cmake): end
set(HAVE_ATOMIC 1)
set(HAVE_BASENAME 1)
set(HAVE_BOOL_T 1)
@@ -186,7 +188,9 @@ if(ANDROID)
else()
set(HAVE_NETINET_IN6_H 0)
endif()
if(0) # XXX(cmake): cache this result for nghttp2
set(HAVE_NETINET_IN_H 1)
endif() # XXX(cmake): end
set(HAVE_NETINET_TCP_H 1)
set(HAVE_NETINET_UDP_H 1)
set(HAVE_NET_IF_H 1)

View File

@@ -1,5 +1,9 @@
# Set curl options as needed for CMake build
set(_CURL_QUICK_DETECT ON)
if(CMAKE_SYSTEM_NAME MATCHES "^(AIX|SunOS)$")
set(_CURL_PREFILL OFF)
else()
set(_CURL_PREFILL ON)
endif()
set(BUILD_CURL_EXE OFF CACHE INTERNAL "No curl exe")
set(BUILD_DASHBOARD_REPORTS OFF CACHE INTERNAL "No curl dashboard reports")
set(BUILD_RELEASE_DEBUG_DIRS OFF CACHE INTERNAL "No curl release/debug dirs")
@@ -86,6 +90,7 @@ set(ENABLE_DEBUG OFF CACHE INTERNAL "No curl debug features")
set(ENABLE_INET_PTON OFF CACHE INTERNAL "Set to OFF to prevent usage of inet_pton when building against modern SDKs while still requiring compatibility with older Windows versions, such as Windows XP, Windows Server 2003 etc.")
set(ENABLE_IPV6 ON CACHE INTERNAL "Enable curl IPv6 support detection")
set(ENABLE_MANUAL OFF CACHE INTERNAL "No curl built-in manual")
set(ENABLE_SERVER_DEBUG OFF)
set(ENABLE_THREADED_RESOLVER OFF CACHE INTERNAL "No curl POSIX threaded DNS lookup")
set(ENABLE_UNICODE OFF)
set(ENABLE_UNIX_SOCKETS OFF CACHE INTERNAL "No curl Unix domain sockets support")
@@ -767,10 +772,14 @@ if(_CURL_PREFILL)
include("${CMAKE_CURRENT_SOURCE_DIR}/CMake/win32-cache.cmake")
elseif(UNIX)
include("${CMAKE_CURRENT_SOURCE_DIR}/CMake/unix-cache.cmake")
if(0) # XXX(cmake): not needed for build within cmake
message(STATUS "Pre-filling feature detection results for UNIX")
endif() # XXX(cmake): end
endif()
elseif(WIN32)
if(0) # XXX(cmake): not needed for build within cmake
message(STATUS "Pre-filling feature detection results disabled.")
endif() # XXX(cmake): end
elseif(APPLE)
set(HAVE_EVENTFD 0)
set(HAVE_GETPASS_R 0)