From 2cfd69929539cb8642446e187d735ff833fface7 Mon Sep 17 00:00:00 2001 From: Martin Dobias Date: Tue, 31 Mar 2020 09:11:44 +0200 Subject: [PATCH] Make sure that "protoc" tool is available It may be in a separate package, e.g. on Ubuntu there is protobuf-compiler --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a17a6503f1d..2c76dd89c3f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")