Fixed build without protobuf-lite (#19164)

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

No files matched your search

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