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})