Fix build on Arch with recent version of protobuf

This commit is contained in:
Blottiere Paul 2023-07-27 06:20:26 +02:00
parent 5d55ee48d2
commit 3754e386b3

View File

@ -370,7 +370,12 @@ 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)
find_package(Protobuf REQUIRED)
if((${Protobuf_VERSION} GREATER 4.23) OR (${Protobuf_VERSION} EQUAL 4.23))
set(Protobuf_LITE_LIBRARY protobuf::libprotobuf-lite)
endif()
message(STATUS "Found Protobuf: ${Protobuf_LIBRARIES}")
if (NOT Protobuf_PROTOC_EXECUTABLE)
message (SEND_ERROR "Protobuf library's 'protoc' tool was not found!")