Add fatal error for missing protobuf compiler

This commit is contained in:
Jonas Kvinge 2020-08-07 19:43:03 +02:00
parent a79b3e7852
commit 3da681a6b1
1 changed files with 3 additions and 1 deletions

View File

@ -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)