1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-19 02:17:27 +08:00

curl: Set build options the way we need for CMake

Set options added by the update to curl 8.10.1.
This commit is contained in:
Brad King
2024-09-18 11:51:40 -04:00
parent ce908c42a3
commit da52e4e571

View File

@@ -11,12 +11,15 @@ set(CURL_USE_GSSAPI OFF)
set(CURL_USE_LIBPSL OFF) set(CURL_USE_LIBPSL OFF)
set(CURL_USE_LIBSSH2 OFF) set(CURL_USE_LIBSSH2 OFF)
set(CURL_USE_LIBSSH OFF) set(CURL_USE_LIBSSH OFF)
set(CURL_USE_LIBUV OFF)
set(CURL_USE_MBEDTLS OFF) set(CURL_USE_MBEDTLS OFF)
set(CURL_USE_NSS OFF) set(CURL_USE_NSS OFF)
set(CURL_USE_OPENLDAP OFF) set(CURL_USE_OPENLDAP OFF)
set(CURL_USE_OPENSSL "${CMAKE_USE_OPENSSL}") set(CURL_USE_OPENSSL "${CMAKE_USE_OPENSSL}")
set(CURL_USE_PKGCONFIG OFF)
set(CURL_USE_SCHANNEL OFF) set(CURL_USE_SCHANNEL OFF)
set(CURL_USE_SECTRANSP OFF) set(CURL_USE_SECTRANSP OFF)
set(CURL_USE_WOLFSSH OFF)
set(CURL_USE_WOLFSSL OFF) set(CURL_USE_WOLFSSL OFF)
set(CURL_BROTLI OFF) set(CURL_BROTLI OFF)
set(CURL_DISABLE_ALTSVC ON) set(CURL_DISABLE_ALTSVC ON)
@@ -54,6 +57,7 @@ set(CURL_DISABLE_POP3 ON CACHE INTERNAL "Disable curl pop3 protocol?")
set(CURL_DISABLE_PROGRESS_METER OFF) set(CURL_DISABLE_PROGRESS_METER OFF)
set(CURL_DISABLE_PROXY OFF CACHE INTERNAL "Do not disable curl proxy") set(CURL_DISABLE_PROXY OFF CACHE INTERNAL "Do not disable curl proxy")
set(CURL_DISABLE_RTSP ON CACHE INTERNAL "Disable curl rtsp protocol?") set(CURL_DISABLE_RTSP ON CACHE INTERNAL "Disable curl rtsp protocol?")
set(CURL_DISABLE_SHA512_256 OFF)
set(CURL_DISABLE_SHUFFLE_DNS OFF) set(CURL_DISABLE_SHUFFLE_DNS OFF)
set(CURL_DISABLE_SMB OFF) set(CURL_DISABLE_SMB OFF)
set(CURL_DISABLE_SMTP ON CACHE INTERNAL "Disable curl smtp protocol?") set(CURL_DISABLE_SMTP ON CACHE INTERNAL "Disable curl smtp protocol?")
@@ -741,8 +745,10 @@ if(CURL_USE_SECTRANSP)
set(_valid_default_ssl_backend TRUE) set(_valid_default_ssl_backend TRUE)
endif() endif()
if(0) # This code not needed for building within CMake.
message(WARNING "Secure Transport does not support TLS 1.3.") message(WARNING "Secure Transport does not support TLS 1.3.")
endif() endif()
endif()
if(_use_core_foundation_and_core_services) if(_use_core_foundation_and_core_services)
find_library(COREFOUNDATION_FRAMEWORK "CoreFoundation") find_library(COREFOUNDATION_FRAMEWORK "CoreFoundation")
@@ -823,8 +829,10 @@ if(CURL_USE_BEARSSL)
endif() endif()
set(_curl_ca_bundle_supported TRUE) set(_curl_ca_bundle_supported TRUE)
if(0) # This code not needed for building within CMake.
message(WARNING "BearSSL does not support TLS 1.3.") message(WARNING "BearSSL does not support TLS 1.3.")
endif() endif()
endif()
if(CURL_USE_WOLFSSL) if(CURL_USE_WOLFSSL)
find_package(WolfSSL REQUIRED) find_package(WolfSSL REQUIRED)
@@ -1265,7 +1273,7 @@ option(USE_LIBIDN2 "Use libidn2 for IDN support" ON)
set(HAVE_IDN2_H OFF) set(HAVE_IDN2_H OFF)
set(HAVE_LIBIDN2 OFF) set(HAVE_LIBIDN2 OFF)
if(USE_LIBIDN2 AND NOT USE_APPLE_IDN AND NOT USE_WIN32_IDN) if(USE_LIBIDN2 AND NOT USE_APPLE_IDN AND NOT USE_WIN32_IDN)
find_package(Libidn2) find_package(Libidn2 QUIET)
if(LIBIDN2_FOUND) if(LIBIDN2_FOUND)
set(CURL_LIBS "${LIBIDN2_LIBRARIES};${CURL_LIBS}") set(CURL_LIBS "${LIBIDN2_LIBRARIES};${CURL_LIBS}")
list(APPEND CURL_LIBDIRS ${LIBIDN2_LIBRARY_DIRS}) list(APPEND CURL_LIBDIRS ${LIBIDN2_LIBRARY_DIRS})