fix build issue on android on shutdown protobuf (#9615)

* fix build issue on android on shutdown protobuf

* add ie_dependent_option for shutdown protobuf
This commit is contained in:
mei, yang
2022-01-13 16:47:54 +08:00
committed by GitHub
parent 080477aa9c
commit 6ae0ba481e
4 changed files with 7 additions and 3 deletions

View File

@@ -150,7 +150,7 @@ macro(ov_add_frontend)
endif()
# Shutdown protobuf when unloading the front dynamic library
if(OV_FRONTEND_SHUTDOWN_PROTOBUF AND BUILD_SHARED_LIBS)
if(ENABLE_SHUTDOWN_PROTOBUF AND OV_FRONTEND_SHUTDOWN_PROTOBUF AND BUILD_SHARED_LIBS)
target_link_libraries(${TARGET_NAME} PRIVATE ov_protobuf_shutdown)
endif()