mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
curl: Set build options the way we need for CMake
Set options added by the update to curl 8.11.1.
This commit is contained in:
@@ -5,6 +5,7 @@ set(BUILD_RELEASE_DEBUG_DIRS OFF CACHE INTERNAL "No curl release/debug dirs")
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
set(BUILD_STATIC_LIBS ON)
|
||||
set(BUILD_STATIC_CURL OFF)
|
||||
set(CURL_CA_SEARCH_SAFE OFF)
|
||||
set(CURL_USE_BEARSSL OFF)
|
||||
set(CURL_USE_GSASL OFF)
|
||||
set(CURL_USE_GSSAPI OFF)
|
||||
@@ -27,6 +28,7 @@ set(CURL_DISABLE_AWS OFF)
|
||||
set(CURL_DISABLE_BASIC_AUTH OFF)
|
||||
set(CURL_DISABLE_BEARER_AUTH OFF)
|
||||
set(CURL_DISABLE_BINDLOCAL OFF)
|
||||
set(CURL_DISABLE_CA_SEARCH OFF)
|
||||
set(CURL_DISABLE_COOKIES OFF CACHE INTERNAL "Do not disable curl cookie support")
|
||||
set(CURL_DISABLE_DICT ON CACHE INTERNAL "Disable curl dict protocol?")
|
||||
set(CURL_DISABLE_DIGEST_AUTH OFF)
|
||||
@@ -42,6 +44,7 @@ set(CURL_DISABLE_HTTP_AUTH OFF)
|
||||
set(CURL_DISABLE_HTTP OFF CACHE INTERNAL "Disable curl http protocol?")
|
||||
set(CURL_DISABLE_IMAP ON CACHE INTERNAL "Disable curl imap protocol?")
|
||||
set(CURL_DISABLE_INSTALL ON)
|
||||
set(CURL_DISABLE_IPFS OFF)
|
||||
set(CURL_DISABLE_KERBEROS_AUTH OFF)
|
||||
set(CURL_DISABLE_LDAP ON CACHE INTERNAL "Disable curl ldap protocol?")
|
||||
set(CURL_DISABLE_LDAPS ON CACHE INTERNAL "Disable curl ldaps protocol?")
|
||||
@@ -66,11 +69,13 @@ set(CURL_DISABLE_SRP OFF)
|
||||
set(CURL_DISABLE_TELNET ON CACHE INTERNAL "Disable curl telnet protocol?")
|
||||
set(CURL_DISABLE_TFTP ON CACHE INTERNAL "Disable curl tftp protocol?")
|
||||
set(CURL_DISABLE_VERBOSE_STRINGS OFF CACHE INTERNAL "Do not disable curl verbosity")
|
||||
set(CURL_DISABLE_WEBSOCKETS OFF)
|
||||
set(CURL_ENABLE_EXPORT_TARGET OFF)
|
||||
set(CURL_HIDDEN_SYMBOLS OFF CACHE INTERNAL "No curl hidden symbols")
|
||||
set(CURL_LTO OFF CACHE INTERNAL "Turn on compiler Link Time Optimizations")
|
||||
set(CURL_STATIC_CRT OFF CACHE INTERNAL "Set to ON to build libcurl with static CRT on Windows (/MT).")
|
||||
set(CURL_WERROR OFF CACHE INTERNAL "Turn compiler warnings into errors")
|
||||
set(CURL_ZLIB "AUTO" CACHE INTERNAL "Build curl with ZLIB support (AUTO, ON or OFF)")
|
||||
set(CURL_ZSTD OFF)
|
||||
set(DISABLED_THREADSAFE OFF CACHE INTERNAL "Curl can use thread-safe functions")
|
||||
set(ENABLE_ARES OFF CACHE INTERNAL "No curl c-ares support")
|
||||
@@ -260,6 +265,12 @@ unset(_curl_version_h_contents)
|
||||
if(0) # This code not needed for building within CMake.
|
||||
message(STATUS "curl version=[${_curl_version}]")
|
||||
endif()
|
||||
# XXX(CMake): Set these as normal variables to suppress cache entries.
|
||||
set(CMAKE_PROJECT_VERSION 0)
|
||||
set(CMAKE_PROJECT_VERSION_MAJOR 0)
|
||||
set(CMAKE_PROJECT_VERSION_MINOR 0)
|
||||
set(CMAKE_PROJECT_VERSION_PATCH 0)
|
||||
set(CMAKE_PROJECT_VERSION_TWEAK 0)
|
||||
|
||||
string(REGEX REPLACE "([0-9]+\.[0-9]+\.[0-9]+).+" "\\1" _curl_version_sem "${_curl_version}")
|
||||
project(CURL
|
||||
|
||||
Reference in New Issue
Block a user