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)