Commit 255b2b18 authored by Volker Krause's avatar Volker Krause
Browse files

Work around CMake Protobuf support not dealing with missing protoc

The check in there fails if the protobuf headers are found, but protoc is
missing and pretends protobuf is functional nevertheless. Additionally
some Debian variants are splitting those two parts in different packages
without adding a dependency between them. So on those systems we can end
up with build errors due to such a partial setup without CMake catching
this.

Fixes #1.
parent 1d00f6a5
Pipeline #73854 passed with stage
in 18 seconds
# SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
if (Protobuf_FOUND)
if (Protobuf_FOUND AND Protobuf_PROTOC_EXECUTABLE)
set(HAVE_PROTOBUF TRUE)
PROTOBUF_GENERATE_CPP(pbf_srcs pbf_hdrs
pbf/fileformat.proto
......
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