diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/protobuf/fix-static-build.patch | |
Diffstat (limited to 'vcpkg/ports/protobuf/fix-static-build.patch')
| -rw-r--r-- | vcpkg/ports/protobuf/fix-static-build.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/protobuf/fix-static-build.patch b/vcpkg/ports/protobuf/fix-static-build.patch new file mode 100644 index 0000000..4e75b4b --- /dev/null +++ b/vcpkg/ports/protobuf/fix-static-build.patch @@ -0,0 +1,22 @@ +diff --git a/cmake/install.cmake b/cmake/install.cmake
+index 65765ca29..f5ad69102 100644
+--- a/cmake/install.cmake
++++ b/cmake/install.cmake
+@@ -65,7 +65,7 @@ if (protobuf_BUILD_PROTOC_BINARIES)
+ endforeach ()
+ endif ()
+ foreach (binary IN LISTS _protobuf_binaries)
+- if (UNIX AND NOT APPLE)
++ if (UNIX AND NOT APPLE AND NOT protobuf_MSVC_STATIC_RUNTIME)
+ set_property(TARGET ${binary}
+ PROPERTY INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
+ elseif (APPLE)
+@@ -85,7 +85,5 @@ set(protobuf_HEADERS
+ ${cpp_features_proto_proto_srcs}
+ ${descriptor_proto_proto_srcs}
+ ${plugin_proto_proto_srcs}
+- ${java_features_proto_proto_srcs}
+- ${go_features_proto_proto_srcs}
+ )
+ if (protobuf_BUILD_LIBUPB)
+ list(APPEND protobuf_HEADERS ${libupb_hdrs})
\ No newline at end of file |