From 91f447631da356ca9e8f1eca92f5f59a57e3b5fb Mon Sep 17 00:00:00 2001 From: Tobias Kohlbau Date: Tue, 23 Jan 2018 21:11:15 +0100 Subject: [PATCH] [curl] add option to build with winssl (#2631) Sometimes curl needs to be build with winssl, use vcpkg install curl[winssl]. Signed-off-by: Tobias Kohlbau --- ports/curl/CONTROL | 3 ++- ports/curl/portfile.cmake | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ports/curl/CONTROL b/ports/curl/CONTROL index cdc514006118ec..2affc3bb7e714e 100644 --- a/ports/curl/CONTROL +++ b/ports/curl/CONTROL @@ -1,4 +1,5 @@ Source: curl -Version: 7.57.0-1 +Version: 7.57.0-2 Build-Depends: zlib, openssl, libssh2 Description: A library for transferring data with URLs +# For WINSSL create target triplet which contains set(CURL_USE_WINSSL ON) diff --git a/ports/curl/portfile.cmake b/ports/curl/portfile.cmake index 8a5d17ed63d8da..054dd74b2cd369 100644 --- a/ports/curl/portfile.cmake +++ b/ports/curl/portfile.cmake @@ -20,6 +20,12 @@ else() SET(CURL_STATICLIB ON) endif() +set(USE_OPENSSL ON) +if(CURL_USE_WINSSL) + set(USE_OPENSSL OFF) + set(USE_WINSSL ON) +endif() + set(UWP_OPTIONS) if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") set(UWP_OPTIONS @@ -43,7 +49,8 @@ vcpkg_configure_cmake( -DBUILD_CURL_EXE=OFF -DENABLE_MANUAL=OFF -DCURL_STATICLIB=${CURL_STATICLIB} - -DCMAKE_USE_OPENSSL=ON + -DCMAKE_USE_OPENSSL=${USE_OPENSSL} + -DCMAKE_USE_WINSSL=${USE_WINSSL} OPTIONS_DEBUG -DENABLE_DEBUG=ON )