aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/braft/protobuf.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/braft/protobuf.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/braft/protobuf.patch')
-rw-r--r--vcpkg/ports/braft/protobuf.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/braft/protobuf.patch b/vcpkg/ports/braft/protobuf.patch
new file mode 100644
index 0000000..7ba2bed
--- /dev/null
+++ b/vcpkg/ports/braft/protobuf.patch
@@ -0,0 +1,23 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 28c1026..65af3ae 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -22,7 +22,7 @@ endif()
+ set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
+
+ include(FindThreads)
+-include(FindProtobuf)
++find_package(Protobuf CONFIG REQUIRED)
+
+ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ # require at least gcc 4.8
+@@ -69,7 +69,8 @@ if ((NOT BRPC_INCLUDE_PATH) OR (NOT BRPC_LIB))
+ message(FATAL_ERROR "Fail to find brpc")
+ endif()
+
+-if (NOT PROTOBUF_PROTOC_EXECUTABLE)
++set(PROTOBUF_LIBRARY protobuf::libprotobuf)
++if (0)
+ get_filename_component(PROTO_LIB_DIR ${PROTOBUF_LIBRARY} DIRECTORY)
+ set (PROTOBUF_PROTOC_EXECUTABLE "${PROTO_LIB_DIR}/../bin/protoc")
+ endif()