Spliy TBB component on tbb and tbb_dev (#9136)
This commit is contained in:
parent
8b4b3870ae
commit
afea9e0e87
@ -250,7 +250,6 @@ openvino_developer_export_targets(COMPONENT core TARGETS ${TARGET_NAME}_plugin_a
|
||||
|
||||
# install TBB
|
||||
|
||||
list(APPEND core_components ngraph)
|
||||
list(APPEND PATH_VARS "IE_INCLUDE_DIR" "OV_CORE_DIR"
|
||||
"IE_PARALLEL_CMAKE")
|
||||
|
||||
@ -268,11 +267,10 @@ endif()
|
||||
# install only downloaded TBB, system one is not installed
|
||||
if(THREADING MATCHES "^(TBB|TBB_AUTO)$" AND TBBROOT MATCHES ${TEMP})
|
||||
ie_cpack_add_component(tbb REQUIRED)
|
||||
ie_cpack_add_component(tbb_dev REQUIRED)
|
||||
list(APPEND core_components tbb)
|
||||
list(APPEND core_dev_components tbb_dev)
|
||||
|
||||
install(DIRECTORY "${TBB}/include"
|
||||
DESTINATION runtime/3rdparty/tbb
|
||||
COMPONENT tbb)
|
||||
install(DIRECTORY "${TBB}/lib"
|
||||
DESTINATION runtime/3rdparty/tbb
|
||||
COMPONENT tbb)
|
||||
@ -290,7 +288,10 @@ if(THREADING MATCHES "^(TBB|TBB_AUTO)$" AND TBBROOT MATCHES ${TEMP})
|
||||
install(FILES "${TBB}/cmake/TBBConfig.cmake"
|
||||
"${TBB}/cmake/TBBConfigVersion.cmake"
|
||||
DESTINATION runtime/${IE_TBB_DIR_INSTALL}
|
||||
COMPONENT tbb)
|
||||
COMPONENT tbb_dev)
|
||||
install(DIRECTORY "${TBB}/include"
|
||||
DESTINATION runtime/3rdparty/tbb
|
||||
COMPONENT tbb_dev)
|
||||
endif()
|
||||
|
||||
if(install_tbbbind)
|
||||
@ -304,13 +305,13 @@ if(install_tbbbind)
|
||||
set(IE_TBBBIND_DIR_INSTALL "3rdparty/tbb_bind_2_5/cmake")
|
||||
install(FILES "${TBBBIND_2_5}/cmake/TBBBIND_2_5Config.cmake"
|
||||
DESTINATION runtime/${IE_TBBBIND_DIR_INSTALL}
|
||||
COMPONENT tbb)
|
||||
COMPONENT tbb_dev)
|
||||
endif()
|
||||
|
||||
# Install Inference Engine
|
||||
|
||||
ie_cpack_add_component(core REQUIRED DEPENDS ${core_components})
|
||||
ie_cpack_add_component(core_dev REQUIRED core)
|
||||
ie_cpack_add_component(core_dev REQUIRED DEPENDS core ${core_dev_components})
|
||||
|
||||
install(DIRECTORY "${PUBLIC_HEADERS_DIR}/" DESTINATION runtime/include
|
||||
COMPONENT core_dev)
|
||||
|
Loading…
Reference in New Issue
Block a user