From 3da681a6b128cba18de02c606b694678545b7ff7 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 7 Aug 2020 19:43:03 +0200 Subject: [PATCH] Add fatal error for missing protobuf compiler --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12bf7abec..ed32fd908 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,7 +93,9 @@ if(Backtrace_FOUND) endif() find_package(GnuTLS REQUIRED) find_package(Protobuf REQUIRED) -find_library(PROTOBUF_STATIC_LIBRARY libprotobuf.a libprotobuf) +if (NOT Protobuf_PROTOC_EXECUTABLE) + message(FATAL_ERROR "Missing protobuf compiler.") +endif() if(LINUX) find_package(ALSA REQUIRED) pkg_check_modules(DBUS REQUIRED dbus-1)