Ported patch from vcpkg related to protobuf search (#23460)

### Details:
 - Ported patch from vcpkg related to protobuf search
 - See https://github.com/microsoft/vcpkg/pull/35781
This commit is contained in:
Ilya Lavrenov 2024-03-14 18:27:39 +04:00 committed by GitHub
parent bd734284bf
commit e3db2766b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -316,7 +316,10 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND
# see https://protobuf.dev/support/version-support/ and
# https://github.com/protocolbuffers/protobuf/commit/d61f75ff6db36b4f9c0765f131f8edc2f86310fa
find_package(Protobuf 4.22.0 QUIET CONFIG)
if(NOT Protobuf_FOUND)
if(Protobuf_FOUND)
# protobuf was found via CONFIG mode, let's save it for later usage in OpenVINOConfig.cmake static build
set(protobuf_config CONFIG)
else()
if(OV_VCPKG_BUILD)
set(protobuf_config CONFIG)
endif()