From 1ccd8d14f0ac1af6fc8a7af93ac545bb562cb415 Mon Sep 17 00:00:00 2001 From: Chris Padwick Date: Sun, 30 Jun 2024 20:25:10 -0700 Subject: [PATCH] [build] cmake: Add check for protobuf compiler (#6792) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0951652763..b123d12d26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,6 +207,7 @@ find_package(LIBSSH 0.7.1) set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON) set(protobuf_MODULE_COMPATIBLE ON CACHE BOOL "" FORCE) find_package(Protobuf REQUIRED) +find_program(PROTOC_COMPILER protoc REQUIRED) set(CMAKE_FIND_PACKAGE_PREFER_CONFIG OFF) get_property(isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)