Skip to content

Commit

Permalink
Make sure that "protoc" tool is available
Browse files Browse the repository at this point in the history
It may be in a separate package, e.g. on Ubuntu there is protobuf-compiler
  • Loading branch information
wonder-sk committed Mar 31, 2020
1 parent 7749e75 commit 2cfd699
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ IF(WITH_CORE)

FIND_PACKAGE(Protobuf REQUIRED) # for decoding of vector tiles in MVT format
MESSAGE(STATUS "Found Protobuf: ${Protobuf_LIBRARIES}")
IF (NOT Protobuf_PROTOC_EXECUTABLE)
MESSAGE (SEND_ERROR "Protobuf library's 'protoc' tool was not found!")
ENDIF ()
FIND_PACKAGE(ZLIB REQUIRED) # for decompression of vector tiles in MBTiles file
MESSAGE(STATUS "Found zlib: ${ZLIB_LIBRARIES}")

Expand Down

0 comments on commit 2cfd699

Please sign in to comment.