[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 <tobias@kohlbau.de>
This commit is contained in:
Tobias Kohlbau 2018-01-23 21:11:15 +01:00 committed by Robert Schumacher
parent 64203615a6
commit 91f447631d
2 changed files with 10 additions and 2 deletions

View File

@ -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)

View File

@ -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
)