mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 13:50:49 +00:00
[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:
parent
64203615a6
commit
91f447631d
@ -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)
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user