deps: cURL: Set default SSL backends

This commit is contained in:
Tom Dewey 2024-07-30 15:04:03 +01:00 committed by Tom Dewey
parent d9082f8abd
commit 762ed2b940

View file

@ -124,17 +124,19 @@ if (APPLE)
# Best recommendation: Libressl, as used by Apple in the curl binary
# on macOS.
set(CURL_USE_SECTRANSP ON)
set(CURL_DEFAULT_SSL_BACKEND "secure-transport")
else()
if (WIN32)
set(CURL_USE_SCHANNEL ON)
set(CURL_DEFAULT_SSL_BACKEND "schannel")
else ()
set(CURL_USE_GNUTLS ON)
set(CURL_DEFAULT_SSL_BACKEND "gnutls")
endif(WIN32)
endif(APPLE)
add_subdirectory(dependencies/curl-8.8.0)
set(CURL_FOUND true)
set(CURL_POSTFIX "$<$<CONFIG:Debug>:-d>${CMAKE_STATIC_LIBRARY_SUFFIX}")
set(CURL_LIBRARIES libcurl_static)
set(CURL_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/dependencies/curl-8.8.0/include)
set(CURL_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}/dependencies/curl-8.8.0/include)