aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/grpc/00016-fix-plugin-targets.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/grpc/00016-fix-plugin-targets.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/grpc/00016-fix-plugin-targets.patch')
-rw-r--r--vcpkg/ports/grpc/00016-fix-plugin-targets.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcpkg/ports/grpc/00016-fix-plugin-targets.patch b/vcpkg/ports/grpc/00016-fix-plugin-targets.patch
new file mode 100644
index 0000000..ce7924c
--- /dev/null
+++ b/vcpkg/ports/grpc/00016-fix-plugin-targets.patch
@@ -0,0 +1,12 @@
+diff --git a/cmake/gRPCConfig.cmake.in b/cmake/gRPCConfig.cmake.in
+index 7cad2abca1..c287f3b413 100644
+--- a/cmake/gRPCConfig.cmake.in
++++ b/cmake/gRPCConfig.cmake.in
+@@ -12,6 +12,6 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/modules)
+
+ # Targets
+ include(${CMAKE_CURRENT_LIST_DIR}/gRPCTargets.cmake)
+-if(NOT CMAKE_CROSSCOMPILING)
++if(@gRPC_BUILD_CODEGEN@)
+ include(${CMAKE_CURRENT_LIST_DIR}/gRPCPluginTargets.cmake)
+ endif()