diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ca43f25..5029a3f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,6 +163,9 @@ set(CMAKE_AUTOMOC TRUE) # Find other needed libraries FIND_PACKAGE(Protobuf REQUIRED) +IF(NOT EXISTS "${Protobuf_PROTOC_EXECUTABLE}") + MESSAGE(FATAL_ERROR "No protoc command found!") +ENDIF() #Find OpenSSL IF(WIN32)