summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWildemann Stefan <stefan.wildemann@corpuls.com>2019-06-18 10:46:36 +0200
committerWildemann Stefan <stefan.wildemann@corpuls.com>2019-06-18 10:46:36 +0200
commit0885656d53b1f00fa056691dbde24616e7026986 (patch)
tree21235ac4c48cbc9c8f1b5f9e6f6c4b9096d0c54d
parent1bd73ecab8f458950aebf0c07ba7de0c4e15de81 (diff)
downloadnavit-maptool_protobuf.tar.gz
Disable maptool if protobuf-c not foundmaptool_protobuf
-rwxr-xr-xCMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3e6d4c683..a03cdc835 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -687,6 +687,13 @@ if(CMAKE_SIZEOF_VOID_P LESS 8)
set_with_reason(BUILD_MAPTOOL "maptool works only on 64 bit architectures" FALSE)
endif()
+if(BUILD_MAPTOOL)
+ find_package(Protobuf-c REQUIRED)
+ if(NOT PROTOBUF_C_FOUND)
+ set_with_reason(BUILD_MAPTOOL "PROTOBUF-C not found" FALSE)
+ endif()
+endif()
+
set(LOCALEDIR "${LOCALE_DIR}")
find_program(BZCAT NAMES bzcat)