summarylogtreecommitdiffstats
path: root/protobuf-23.patch
blob: 8e236e692734099b2434e202423846f524ed71f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 48a34626b0..e2b5cca718 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -363,7 +363,9 @@ if(WITH_CORE)
     message (SEND_ERROR "sqlite3 dependency was not found!")
   endif()
 
-  find_package(Protobuf REQUIRED)   # for decoding of vector tiles in MVT format
+  find_package(Protobuf CONFIG REQUIRED)  # for decoding of vector tiles in MVT format
+  find_package(Protobuf) # for protobuf_generate_cpp
+  set(Protobuf_LITE_LIBRARY protobuf::libprotobuf-lite)
   message(STATUS "Found Protobuf: ${Protobuf_LIBRARIES}")
   if (NOT Protobuf_PROTOC_EXECUTABLE)
     message (SEND_ERROR "Protobuf library's 'protoc' tool was not found!")