[build] cmake: Add check for protobuf compiler (#6792)

This commit is contained in:
Chris Padwick
2024-06-30 20:25:10 -07:00
committed by GitHub
parent a2beb7510b
commit 1ccd8d14f0

View File

@@ -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)