curl: Set build options the way we need for CMake

Set options added by the update to curl 8.7.1.
This commit is contained in:
Brad King
2024-04-05 12:59:45 -04:00
parent 7fef14d8e0
commit 9f399e741c

View File

@@ -93,6 +93,7 @@ set(SHARE_LIB_OBJECT OFF)
set(USE_LIBIDN2 ON)
set(USE_NGHTTP2 ON)
set(USE_NGTCP2 OFF)
set(USE_OPENSSL_QUIC OFF)
set(USE_QUICHE OFF)
set(USE_WIN32_IDN OFF)
set(USE_WIN32_LDAP OFF CACHE INTERNAL "No curl Windows LDAP")
@@ -909,11 +910,13 @@ if(USE_OPENSSL_QUIC)
list(APPEND CURL_LIBS ${NGHTTP3_LIBRARIES})
endif()
if(0) # This code not needed for building within CMake.
if(USE_MBEDTLS OR
USE_BEARSSL OR
USE_SECTRANSP)
message(WARNING "A selected TLS library does not support TLS 1.3.")
endif()
endif()
if(CURL_WITH_MULTI_SSL AND (USE_NGTCP2 OR USE_QUICHE OR USE_MSH3 OR USE_OPENSSL_QUIC))
message(FATAL_ERROR "MultiSSL cannot be enabled with HTTP/3 and vice versa.")