vcpkg/ports/protobuf-c/fix-dependency-protobuf.patch
MonicaLiu 682f633501
[protobuf-c] Update to 1.5.0 (#39878)
Co-authored-by: Monica <v-liumonica@microsoft.com>
2024-08-01 09:57:53 -07:00

14 lines
481 B
Diff

diff --git a/build-cmake/CMakeLists.txt b/build-cmake/CMakeLists.txt
index ba0b730..a5161cf 100644
--- a/build-cmake/CMakeLists.txt
+++ b/build-cmake/CMakeLists.txt
@@ -15,7 +15,7 @@ if (MSVC AND NOT BUILD_SHARED_LIBS)
SET(Protobuf_USE_STATIC_LIBS ON)
endif (MSVC AND NOT BUILD_SHARED_LIBS)
-FIND_PACKAGE(Protobuf REQUIRED)
+find_package(protobuf CONFIG REQUIRED)
file(REAL_PATH "${PROTOBUF_INCLUDE_DIR}" PROTOBUF_INCLUDE_DIR)
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})