Browse Source

curl: Set build options the way we need for CMake

Set options added by the update to curl 8.15.0.

In particular, drop code not needed after curl commit `08a3e8e19a`
(TLS: remove support for Secure Transport and BearSSL, 2025-06-09).
Brad King 5 months ago
parent
commit
8d8283642a
1 changed files with 0 additions and 20 deletions
  1. 0 20
      Utilities/cmcurl/CMakeLists.txt

+ 0 - 20
Utilities/cmcurl/CMakeLists.txt

@@ -11,7 +11,6 @@ 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)
 set(CURL_USE_LIBPSL OFF)
@@ -24,7 +23,6 @@ set(CURL_USE_OPENLDAP OFF)
 set(CURL_USE_OPENSSL "${CMAKE_USE_OPENSSL}")
 set(CURL_USE_PKGCONFIG OFF)
 set(CURL_USE_SCHANNEL OFF)
-set(CURL_USE_SECTRANSP OFF)
 set(CURL_USE_WOLFSSH OFF)
 set(CURL_USE_WOLFSSL OFF)
 set(CURL_BROTLI "OFF" CACHE INTERNAL "Build curl with BROTLI support (AUTO, ON or OFF)")
@@ -90,7 +88,6 @@ 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")
@@ -121,23 +118,6 @@ if(CURL_USE_OPENSSL)
 elseif(WIN32)
   set(CURL_USE_SCHANNEL ON)
   set(CURL_WINDOWS_SSPI ON)
-elseif(APPLE)
-  # Use OS X SSL/TLS native implementation if available on target version.
-  if(CMAKE_OSX_DEPLOYMENT_TARGET)
-    set(OSX_VERSION ${CMAKE_OSX_DEPLOYMENT_TARGET})
-  else()
-    execute_process(
-      COMMAND sw_vers -productVersion
-      OUTPUT_VARIABLE OSX_VERSION
-      OUTPUT_STRIP_TRAILING_WHITESPACE
-      )
-  endif()
-  if(NOT OSX_VERSION VERSION_LESS 10.6 AND
-      CMAKE_C_COMPILER_ID MATCHES "GNU|LCC|Clang|AppleClang")
-    set(CURL_USE_SECTRANSP ON)
-  else()
-    set(CURL_USE_SECTRANSP OFF)
-  endif()
 endif()
 
 # Windows Vista and above have inet_pton, but this will link on