mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 06:19:01 +08:00
ef5686e586
When curl is linked with a static nghttp2, NGHTTP2_STATICLIB must be defined.
15 lines
394 B
Diff
15 lines
394 B
Diff
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)
|