diff options
| author | Tobias Kohlbau <tobias@kohlbau.de> | 2018-01-23 21:11:15 +0100 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-01-23 12:11:15 -0800 |
| commit | 91f447631da356ca9e8f1eca92f5f59a57e3b5fb (patch) | |
| tree | 153db0d19b12468d807d596ff6da86177c8dfcc2 | |
| parent | 64203615a6d593fafbea36ce4cd01583deb0ad01 (diff) | |
| download | vcpkg-91f447631da356ca9e8f1eca92f5f59a57e3b5fb.tar.gz vcpkg-91f447631da356ca9e8f1eca92f5f59a57e3b5fb.zip | |
[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>
| -rw-r--r-- | ports/curl/CONTROL | 3 | ||||
| -rw-r--r-- | ports/curl/portfile.cmake | 9 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ports/curl/CONTROL b/ports/curl/CONTROL index cdc514006..2affc3bb7 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 8a5d17ed6..054dd74b2 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 ) |
