From c4a8a2e2965c3acfc0c61fc867789aa0c22f7500 Mon Sep 17 00:00:00 2001 From: R2DLiu Date: Sat, 25 Jul 2020 22:35:32 -0400 Subject: [PATCH] fix curl build --- Externals/curl/lib/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Externals/curl/lib/CMakeLists.txt b/Externals/curl/lib/CMakeLists.txt index 00b6a7c2cc..6078a1366e 100644 --- a/Externals/curl/lib/CMakeLists.txt +++ b/Externals/curl/lib/CMakeLists.txt @@ -1,5 +1,7 @@ if(NOT CMAKE_SYSTEM_NAME MATCHES "Windows") - add_definitions(-DHAVE_CONFIG_H) + add_definitions(-DHAVE_CONFIG_H) +else() + add_definitions(-DUSE_SCHANNEL -DUSE_WINDOWS_SSPI) endif() include_directories(.) @@ -9,7 +11,7 @@ add_library( curl STATIC ${SRCS} - ) +) target_link_libraries(curl ${MBEDTLS_LIBRARIES}) target_compile_definitions(curl PUBLIC CURL_STATICLIB PRIVATE CURL_DISABLE_LDAP)