Fixed build without protobuf-lite (#19164)

This commit is contained in:
Ilya Lavrenov
2023-08-14 11:57:35 +04:00
committed by GitHub
parent f09d2e2666
commit aebf1edec7
2 changed files with 11 additions and 2 deletions

View File

@@ -201,6 +201,10 @@ macro(ov_add_frontend)
if(FORCE_FRONTENDS_USE_PROTOBUF)
set(OV_FRONTEND_PROTOBUF_LITE OFF)
endif()
# if protobuf::libprotobuf-lite is not available, use protobuf::libprotobuf
if(NOT TARGET protobuf::libprotobuf-lite)
set(OV_FRONTEND_PROTOBUF_LITE OFF)
endif()
if(proto_files)
if(OV_FRONTEND_PROTOBUF_LITE)