curl additional flags and mbedtls test

This commit is contained in:
OatmealDome 2024-12-21 21:26:46 -05:00
parent 14ace4a186
commit 48b6e0a3e4
1 changed files with 19 additions and 4 deletions

View File

@ -1,16 +1,31 @@
set(BUILD_CURL_EXE OFF)
set(BUILD_EXAMPLES OFF)
set(BUILD_LIBCURL_DOCS OFF)
set(BUILD_MISC_DOCS OFF)
set(BUILD_SHARED_LIBS OFF)
set(BUILD_STATIC_LIBS ON)
set(BUILD_TESTS OFF)
set(BUILD_EXAMPLES OFF)
set(CURL_ENABLE_EXPORT_TARGET OFF)
if(WIN32)
set(CURL_USE_SCHANNEL ON)
endif()
# Disable all dependencies except those that are vital (mbedtls).
set(CURL_USE_LIBPSL OFF)
set(CURL_USE_LIBSSH2 OFF)
set(CURL_ZLIB OFF)
set(CURL_ZSTD OFF)
set(USE_LIBIDN2 OFF)
set(USE_NGHTTP2 OFF)
if(UNIX)
set(CURL_USE_MBEDTLS ON)
if(NOT MBEDTLS_FOUND)
set(MBEDTLS_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/Externals/mbedtls/include")
endif()
endif()
if(WIN32)
set(USE_WIN32_LDAP OFF)
set(CURL_USE_SCHANNEL ON)
endif()
if(APPLE)