aboutsummaryrefslogtreecommitdiff
path: root/ports/nghttp2/enable-static.patch
diff options
context:
space:
mode:
authoreao197 <eao197@gmail.com>2018-05-30 19:25:16 +0300
committereao197 <eao197@gmail.com>2018-05-30 19:25:16 +0300
commit99eb78cf2dd8b000ac195dd9ebba4fb344dc5baa (patch)
tree18072db815a8f417c4d63a00ae95286642f0dff3 /ports/nghttp2/enable-static.patch
parent34257a50ceda0bfa05e59b532f71223b70f39d52 (diff)
parent842252373992a9c7b74f041607b47754d61cc0c8 (diff)
downloadvcpkg-99eb78cf2dd8b000ac195dd9ebba4fb344dc5baa.tar.gz
vcpkg-99eb78cf2dd8b000ac195dd9ebba4fb344dc5baa.zip
Merge https://github.com/Microsoft/vcpkg
Diffstat (limited to 'ports/nghttp2/enable-static.patch')
-rw-r--r--ports/nghttp2/enable-static.patch18
1 files changed, 11 insertions, 7 deletions
diff --git a/ports/nghttp2/enable-static.patch b/ports/nghttp2/enable-static.patch
index 3b58979cf..18e58daeb 100644
--- a/ports/nghttp2/enable-static.patch
+++ b/ports/nghttp2/enable-static.patch
@@ -1,23 +1,27 @@
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
-index 0846d06..290679f 100644
+index 17e422b..b2e7a6e 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
-@@ -38,7 +38,7 @@ if(WIN32)
+@@ -37,8 +37,8 @@ if(WIN32)
+ set(NGHTTP2_RES ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
endif()
- # Public shared library
+-# Public shared library
-add_library(nghttp2 SHARED ${NGHTTP2_SOURCES} ${NGHTTP2_RES})
++# Public library
+add_library(nghttp2 ${NGHTTP2_SOURCES} ${NGHTTP2_RES})
set_target_properties(nghttp2 PROPERTIES
COMPILE_FLAGS "${WARNCFLAGS}"
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}
-@@ -48,6 +48,9 @@ target_include_directories(nghttp2 INTERFACE
- "${CMAKE_CURRENT_BINARY_DIR}/includes"
+@@ -49,6 +49,10 @@ target_include_directories(nghttp2 INTERFACE
"${CMAKE_CURRENT_SOURCE_DIR}/includes"
)
+
+if(NOT BUILD_SHARED_LIBS)
+ target_compile_definitions(nghttp2 PUBLIC "-DNGHTTP2_STATICLIB")
+endif()
-
- if(HAVE_CUNIT)
++
+ if(HAVE_CUNIT OR ENABLE_STATIC_LIB)
# Static library (for unittests because of symbol visibility)
+ add_library(nghttp2_static STATIC ${NGHTTP2_SOURCES})
+