From 63cf0ae7641052b90c3b9fc131bc0968e00b3d70 Mon Sep 17 00:00:00 2001 From: skwerlman Date: Sat, 4 May 2019 23:33:38 -0400 Subject: [PATCH] Fail cmake if protoc doesn't exist (#3705) fix #3704 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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)