mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
curl: Set build options the way we need for CMake
This commit is contained in:
@@ -7,6 +7,7 @@ set(CMAKE_USE_GSSAPI OFF CACHE INTERNAL "Disable curl gssapi")
|
||||
set(CMAKE_USE_LIBSSH2 OFF CACHE INTERNAL "Disable curl libssh2")
|
||||
set(CMAKE_USE_LIBSSH OFF)
|
||||
set(CMAKE_USE_OPENLDAP OFF CACHE INTERNAL "No curl OpenLDAP")
|
||||
set(CURL_BROTLI OFF)
|
||||
set(CURL_DISABLE_COOKIES OFF CACHE INTERNAL "Do not disable curl cookie support")
|
||||
set(CURL_DISABLE_CRYPTO_AUTH OFF CACHE INTERNAL "Do not disable curl crypto auth")
|
||||
set(CURL_DISABLE_DICT ON CACHE INTERNAL "Disable curl dict protocol?")
|
||||
@@ -29,6 +30,7 @@ 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_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")
|
||||
set(ENABLE_ALT_SVC OFF)
|
||||
@@ -47,7 +49,8 @@ set(USE_QUICHE OFF)
|
||||
set(USE_WIN32_LDAP OFF CACHE INTERNAL "No curl Windows LDAP")
|
||||
if(CMAKE_USE_OPENSSL)
|
||||
elseif(WIN32)
|
||||
set(CMAKE_USE_WINSSL ON CACHE INTERNAL "enable Windows native SSL/TLS")
|
||||
unset(CMAKE_USE_WINSSL CACHE)
|
||||
set(CMAKE_USE_SCHANNEL ON)
|
||||
set(CURL_WINDOWS_SSPI ON CACHE INTERNAL "Use windows libraries to allow NTLM authentication without openssl")
|
||||
elseif(APPLE)
|
||||
# Use OS X SSL/TLS native implementation if available on target version.
|
||||
|
Reference in New Issue
Block a user