blob: 909042908c5001ec13b82e2eaf8fabf70584d757 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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()
-find_package(Protobuf CONFIG)
+find_package(Protobuf CONFIG REQUIRED)
if(Protobuf_FOUND)
# Keep compatibility with FindProtobuf CMake module
set(PROTOBUF_PROTOC_EXECUTABLE $<TARGET_FILE:protobuf::protoc>)
|