Skip to content

Commit

Permalink
Set protobuf_MODULE_COMPATIBLE for protobuf_generate_cpp availability
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 12, 2023
1 parent d63cde6 commit 8888cff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ if(WITH_CORE)
endif()

# workaround errors with older cmake -- see https://github.com/protocolbuffers/protobuf/issues/12292
set(protobuf_MODULE_COMPATIBLE ON CACHE BOOL "")
find_package(Protobuf CONFIG) # for decoding of vector tiles in MVT format
if (NOT Protobuf_FOUND)
FIND_PACKAGE(Protobuf REQUIRED)
Expand Down

0 comments on commit 8888cff

Please sign in to comment.