aboutsummaryrefslogtreecommitdiff
path: root/ports/graphqlparser/static-compile-fix.patch
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-06-23 08:16:07 +0800
committermyd7349 <myd7349@gmail.com>2019-06-23 08:16:07 +0800
commit644851da5fbe46aadd0a8fa54e1d7d213f469fb0 (patch)
tree3f5d20aca85fcf02375cf553e893c105758a5d39 /ports/graphqlparser/static-compile-fix.patch
parentf1870ae02bedbaa5a501ddf3a7ba5d0a743a1053 (diff)
parentf3db66b403840b24ea2612d09cca30a5285f5ea3 (diff)
downloadvcpkg-644851da5fbe46aadd0a8fa54e1d7d213f469fb0.tar.gz
vcpkg-644851da5fbe46aadd0a8fa54e1d7d213f469fb0.zip
Merge branch 'master' into sx-init
Diffstat (limited to 'ports/graphqlparser/static-compile-fix.patch')
-rw-r--r--ports/graphqlparser/static-compile-fix.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/ports/graphqlparser/static-compile-fix.patch b/ports/graphqlparser/static-compile-fix.patch
new file mode 100644
index 000000000..3f2756d71
--- /dev/null
+++ b/ports/graphqlparser/static-compile-fix.patch
@@ -0,0 +1,16 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 56741c2..313308a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -142,8 +142,11 @@ if (UNIX)
+ elseif(WIN32)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/graphqlparser.lib
+ DESTINATION lib)
++ # do not install pdb when static compilation.
++ if (BUILD_SHARED_LIBS)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/graphqlparser.pdb
+ DESTINATION bin)
++ endif()
+ endif()
+
+ IF (test)