Skip to content

Commit

Permalink
[curl] add option to build with winssl (microsoft#2631)
Browse files Browse the repository at this point in the history
Sometimes curl needs to be build with winssl,
use vcpkg install curl[winssl].

Signed-off-by: Tobias Kohlbau <[email protected]>
  • Loading branch information
tobiaskohlbau authored and ras0219-msft committed Jan 23, 2018
1 parent 6420361 commit 91f4476
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ports/curl/CONTROL
Original file line number Diff line number Diff line change
@@ -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)
9 changes: 8 additions & 1 deletion ports/curl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
)
Expand Down

0 comments on commit 91f4476

Please sign in to comment.