aboutsummaryrefslogtreecommitdiff
path: root/ports/protobuf/fix-static-build.patch
diff options
context:
space:
mode:
authorCarlos O'Ryan <coryan@users.noreply.github.com>2021-09-22 13:09:55 -0700
committerGitHub <noreply@github.com>2021-09-22 13:09:55 -0700
commitb29f8ef37edb1cedd5c2e403dbcb355443b939f6 (patch)
tree4ccc9c0b3655d54b05c41e88f3e129125eac1800 /ports/protobuf/fix-static-build.patch
parent93885afd50ff1a1408e1785dceffb01ff648c7d9 (diff)
downloadvcpkg-b29f8ef37edb1cedd5c2e403dbcb355443b939f6.tar.gz
vcpkg-b29f8ef37edb1cedd5c2e403dbcb355443b939f6.zip
[protobuf] upgrade to latest release (v3.18.0) (#20208)
* [protobuf] upgrade to latest release (v3.18.0) This requires patching OpenCV as it uses a function removed in the latest version of protobuf (FWIW, upstream OpenCV has a similar patch). * The arcus port also needs a patch * The caffe2 port also needs a patch * The brpc port also needs a patch
Diffstat (limited to 'ports/protobuf/fix-static-build.patch')
-rw-r--r--ports/protobuf/fix-static-build.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/ports/protobuf/fix-static-build.patch b/ports/protobuf/fix-static-build.patch
index 0ba4982fe..fec980a93 100644
--- a/ports/protobuf/fix-static-build.patch
+++ b/ports/protobuf/fix-static-build.patch
@@ -1,11 +1,11 @@
diff --git a/cmake/install.cmake b/cmake/install.cmake
-index 4091bc8..9850018 100644
+index ef5bb13..e2d4acb 100644
--- a/cmake/install.cmake
+++ b/cmake/install.cmake
-@@ -31,7 +31,7 @@ endforeach()
- if (protobuf_BUILD_PROTOC_BINARIES)
- install(TARGETS protoc EXPORT protobuf-targets
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc)
+@@ -33,7 +33,7 @@ if (protobuf_BUILD_PROTOC_BINARIES)
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR}
+ COMPONENT protoc)
- if (UNIX AND NOT APPLE)
+ if (UNIX AND NOT APPLE AND NOT protobuf_MSVC_STATIC_RUNTIME)
set_property(TARGET protoc