Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ports/graphqlparser/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: graphqlparser
Version: 0.7.0
Version: 0.7.0-1
Description: A GraphQL query parser in C++ with C and C++ APIs
4 changes: 3 additions & 1 deletion ports/graphqlparser/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ vcpkg_from_github(
REF v0.7.0
SHA512 973292b164d0d2cfe453a2f01559dbdb1b9d22b6304f6a3aabf71e2c0a3e24ab69dfd72a086764ad5befecf0005620f8e86f552dacc324f9615a05f31de7cede
HEAD_REF master
PATCHES win-cmake.patch
PATCHES
win-cmake.patch
static-compile-fix.patch
)

if(UNIX)
Expand Down
16 changes: 16 additions & 0 deletions ports/graphqlparser/static-compile-fix.patch
Original file line number Diff line number Diff line change
@@ -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)