Fixed Android build (#17704)
* Fixed Android build * Update thirdparty/dependencies.cmake
This commit is contained in:
parent
6a562268d3
commit
72993e70c0
@ -160,7 +160,7 @@ ie_dependent_option (ENABLE_SYSTEM_TBB "Enables use of system TBB" ${ENABLE_SYS
|
||||
ie_option (ENABLE_SYSTEM_PUGIXML "Enables use of system PugiXML" ${ENABLE_SYSTEM_PUGIXML_DEFAULT})
|
||||
# the option is on by default, because we use only flatc compiler and don't use any libraries
|
||||
ie_dependent_option(ENABLE_SYSTEM_FLATBUFFERS "Enables use of system flatbuffers" ON
|
||||
"ENABLE_OV_TF_LITE_FRONTEND" OFF)
|
||||
"ENABLE_OV_TF_LITE_FRONTEND;NOT ANDROID" OFF)
|
||||
ie_dependent_option (ENABLE_SYSTEM_OPENCL "Enables use of system OpenCL" ${ENABLE_SYSTEM_LIBS_DEFAULT}
|
||||
"ENABLE_INTEL_GPU" OFF)
|
||||
# the option is turned off by default, because we compile our own static version of protobuf
|
||||
|
4
thirdparty/dependencies.cmake
vendored
4
thirdparty/dependencies.cmake
vendored
@ -479,7 +479,9 @@ if(ENABLE_OV_TF_LITE_FRONTEND)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_host_package(Flatbuffers QUIET NO_CMAKE_FIND_ROOT_PATH)
|
||||
# on new Ubuntu versions like 23.04 we have config called FlatBuffersConfig.cmake
|
||||
# so, we need to provide alternative names
|
||||
find_host_package(Flatbuffers QUIET NAMES Flatbuffers FlatBuffers NO_CMAKE_FIND_ROOT_PATH)
|
||||
|
||||
if(DEFINED _old_flat_CMAKE_LIBRARY_ARCHITECTURE)
|
||||
set(CMAKE_LIBRARY_ARCHITECTURE ${_old_flat_CMAKE_LIBRARY_ARCHITECTURE})
|
||||
|
Loading…
Reference in New Issue
Block a user