Conan: compilation with dynamic flatbuffers (#19238)
This commit is contained in:
parent
3ef345095c
commit
14abb2de8e
|
|
@ -99,7 +99,7 @@ if(THREADING MATCHES "^(TBB|TBB_AUTO)$" AND
|
|||
if(CPACK_GENERATOR MATCHES "^(DEB|RPM|CONDA-FORGE|BREW|CONAN|VCPKG)$" AND
|
||||
NOT ENABLE_SYSTEM_TBB AND
|
||||
NOT _ov_system_tbb_is_obsolete)
|
||||
message(FATAL_ERROR "Debian | RPM | Conda-forge | brew | vcpkg packages can be built only with system TBB. Use -DENABLE_SYSTEM_TBB=ON")
|
||||
message(FATAL_ERROR "Debian | RPM | Conda-forge | brew | vcpkg | Conan packages can be built only with system TBB. Use -DENABLE_SYSTEM_TBB=ON")
|
||||
endif()
|
||||
|
||||
if(ENABLE_SYSTEM_TBB)
|
||||
|
|
|
|||
|
|
@ -485,7 +485,13 @@ if(ENABLE_OV_TF_LITE_FRONTEND)
|
|||
|
||||
if(Flatbuffers_FOUND)
|
||||
# we don't actually use library files (.so | .dylib | .a) itself, only headers
|
||||
set(flatbuffers_LIBRARY flatbuffers::flatbuffers)
|
||||
if(TARGET flatbuffers::flatbuffers_shared)
|
||||
set(flatbuffers_LIBRARY flatbuffers::flatbuffers_shared)
|
||||
elseif(TARGET flatbuffers::flatbuffers)
|
||||
set(flatbuffers_LIBRARY flatbuffers::flatbuffers)
|
||||
else()
|
||||
message(FATAL_ERROR "Internal error: Failed to detect flatbuffers library target")
|
||||
endif()
|
||||
set(flatbuffers_COMPILER flatbuffers::flatc)
|
||||
else()
|
||||
add_subdirectory(thirdparty/flatbuffers EXCLUDE_FROM_ALL)
|
||||
|
|
|
|||
Loading…
Reference in New Issue