Add fatal error for missing protobuf compiler
This commit is contained in:
@@ -93,7 +93,9 @@ if(Backtrace_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
find_package(GnuTLS REQUIRED)
|
find_package(GnuTLS REQUIRED)
|
||||||
find_package(Protobuf 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)
|
if(LINUX)
|
||||||
find_package(ALSA REQUIRED)
|
find_package(ALSA REQUIRED)
|
||||||
pkg_check_modules(DBUS REQUIRED dbus-1)
|
pkg_check_modules(DBUS REQUIRED dbus-1)
|
||||||
|
|||||||
Reference in New Issue
Block a user