vcpkg/ports/curl/0004_nghttp2_staticlib.patch
NancyLi1013 f12d986e6a
[curl] Update to 7.71.0 (#12141)
* [curl] Update to 7.71.0

* Update to 7.71.1
2020-07-06 13:23:44 -07:00

15 lines
426 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5a13333..2dd274c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -431,6 +431,9 @@ if(USE_NGHTTP2)
find_package(NGHTTP2 REQUIRED)
include_directories(${NGHTTP2_INCLUDE_DIRS})
list(APPEND CURL_LIBS ${NGHTTP2_LIBRARIES})
+ if(NOT BUILD_SHARED_LIBS)
+ add_definitions(-DNGHTTP2_STATICLIB)
+ endif()
endif()
function(CheckQuicSupportInOpenSSL)