Commit c0d42b93 authored by Volker Krause's avatar Volker Krause
Browse files

Disable OSM PBF file support on Windows

The protobuf parts of this don't seem to link there, and it's not really
needed for normal operation on Windows anyway.
parent 451464bd
......@@ -38,8 +38,10 @@ set_package_properties(FLEX PROPERTIES TYPE RECOMMENDED PURPOSE "MapCSS parser f
find_package(BISON)
set_package_properties(BISON PROPERTIES TYPE RECOMMENDED PURPOSE "MapCSS parser for indoor map rendering.")
find_package(Protobuf)
set_package_properties(Protobuf PROPERTIES TYPE OPTIONAL PURPOSE "Parsing of OSM PBF files.")
if (NOT WIN32)
find_package(Protobuf)
set_package_properties(Protobuf PROPERTIES TYPE OPTIONAL PURPOSE "Parsing of OSM PBF files.")
endif()
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00)
......
......@@ -32,6 +32,8 @@ void OsmPbfParser::parse(const uint8_t *data, std::size_t len)
const uint8_t *end = data + len;
while (parseBlob(it, end));
#else
Q_UNUSED(data);
Q_UNUSED(len);
qWarning() << "OSM PBF file format not available!";
return;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment