mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-21 18:00:52 +08:00
Merge pull request #3476 from matttyson/curl
Fix Windows curl/nghttp2 static build
This commit is contained in:
commit
f796ee4d60
14
ports/curl/0004_nghttp2_staticlib.patch
Normal file
14
ports/curl/0004_nghttp2_staticlib.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 490cc19..51c0a92 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -388,6 +388,9 @@ if(USE_NGHTTP2)
|
||||
find_package(NGHTTP2 REQUIRED)
|
||||
include_directories(${NGHTTP2_INCLUDE_DIRS})
|
||||
list(APPEND CURL_LIBS ${NGHTTP2_LIBRARIES})
|
||||
+ if(CURL_STATICLIB)
|
||||
+ add_definitions(-DNGHTTP2_STATICLIB)
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
if(NOT CURL_DISABLE_LDAP)
|
@ -1,5 +1,5 @@
|
||||
Source: curl
|
||||
Version: 7.60.0
|
||||
Version: 7.60.0-1
|
||||
Build-Depends: zlib
|
||||
Description: A library for transferring data with URLs
|
||||
Default-Features: ssl
|
||||
|
@ -13,6 +13,7 @@ vcpkg_apply_patches(
|
||||
${CMAKE_CURRENT_LIST_DIR}/0001_cmake.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/0002_fix_uwp.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/0003_fix_libraries.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/0004_nghttp2_staticlib.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CURL_STATICLIB)
|
||||
|
Loading…
Reference in New Issue
Block a user