aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Avery <wravery@users.noreply.github.com>2021-01-12 19:51:46 -0800
committerGitHub <noreply@github.com>2021-01-12 19:51:46 -0800
commitfc2c8d20fab2d731d3e03d81936630b989522892 (patch)
tree7efcbfc05ace3a7f8c71e65f9f0786b0967d1241
parent557ecbe253f87d75c6914b9a522ea92fc15eb20f (diff)
downloadvcpkg-fc2c8d20fab2d731d3e03d81936630b989522892.tar.gz
vcpkg-fc2c8d20fab2d731d3e03d81936630b989522892.zip
[cppgraphqlgen] Fix --head for new branch/option (#15549)
* [cppgraphqlgen] Fix --head for new branch/option * Update ports/cppgraphqlgen/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/cppgraphqlgen/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/cppgraphqlgen/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update CONTROL version * Update ports/cppgraphqlgen/CONTROL Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
-rw-r--r--ports/cppgraphqlgen/CONTROL1
-rw-r--r--ports/cppgraphqlgen/portfile.cmake16
2 files changed, 13 insertions, 4 deletions
diff --git a/ports/cppgraphqlgen/CONTROL b/ports/cppgraphqlgen/CONTROL
index 30694fac4..ed84a7ac3 100644
--- a/ports/cppgraphqlgen/CONTROL
+++ b/ports/cppgraphqlgen/CONTROL
@@ -1,5 +1,6 @@
Source: cppgraphqlgen
Version: 2020-12-07
+Port-Version: 1
Build-Depends: boost-program-options, pegtl, rapidjson
Description: C++ GraphQL schema service generator
Homepage: https://github.com/microsoft/cppgraphqlgen
diff --git a/ports/cppgraphqlgen/portfile.cmake b/ports/cppgraphqlgen/portfile.cmake
index 662a38db9..5cdc17faa 100644
--- a/ports/cppgraphqlgen/portfile.cmake
+++ b/ports/cppgraphqlgen/portfile.cmake
@@ -3,15 +3,23 @@ vcpkg_from_github(
REPO microsoft/cppgraphqlgen
REF fb4a589c84c102d867e7bfb03884d40f7776315b
SHA512 88fedd83b49ae25f2165cff8e3a5e3e46ed853312658924f08b3192c790e92583dc8b8f7a88f39ec17798bd7d986143a78633a89d3867400539c4d315015e29b
- HEAD_REF master
+ HEAD_REF main
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
- OPTIONS -DGRAPHQL_BUILD_TESTS=OFF -DGRAPHQL_UPDATE_SAMPLES=OFF -DGRAPHQL_INSTALL_CONFIGURATIONS=Release
- OPTIONS_RELEASE -DGRAPHQL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share -DGRAPHQL_INSTALL_TOOLS_DIR=${CURRENT_PACKAGES_DIR}/tools
- OPTIONS_DEBUG -DGRAPHQL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/debug/share -DGRAPHQL_INSTALL_TOOLS_DIR=${CURRENT_PACKAGES_DIR}/debug/tools
+ OPTIONS
+ -DGRAPHQL_BUILD_TESTS=OFF
+ -DGRAPHQL_UPDATE_VERSION=OFF
+ -DGRAPHQL_UPDATE_SAMPLES=OFF
+ -DGRAPHQL_INSTALL_CONFIGURATIONS=Release
+ OPTIONS_RELEASE
+ -DGRAPHQL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share
+ -DGRAPHQL_INSTALL_TOOLS_DIR=${CURRENT_PACKAGES_DIR}/tools
+ OPTIONS_DEBUG
+ -DGRAPHQL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/debug/share
+ -DGRAPHQL_INSTALL_TOOLS_DIR=${CURRENT_PACKAGES_DIR}/debug/tools
)
vcpkg_install_cmake()