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:
parent
bd734284bf
commit
e3db2766b8
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue