diff options
| -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 ) |
