mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 00:41:38 +08:00
682f633501
Co-authored-by: Monica <v-liumonica@microsoft.com>
14 lines
481 B
Diff
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})
|
|
|