Fail cmake if protoc doesn't exist (#3705)

fix #3704
This commit is contained in:
skwerlman 2019-05-04 23:33:38 -04:00 committed by Zach H
parent f1e79707e8
commit 63cf0ae764

View file

@ -163,6 +163,9 @@ set(CMAKE_AUTOMOC TRUE)
# Find other needed libraries # Find other needed libraries
FIND_PACKAGE(Protobuf REQUIRED) FIND_PACKAGE(Protobuf REQUIRED)
IF(NOT EXISTS "${Protobuf_PROTOC_EXECUTABLE}")
MESSAGE(FATAL_ERROR "No protoc command found!")
ENDIF()
#Find OpenSSL #Find OpenSSL
IF(WIN32) IF(WIN32)