Skip TBB component

This commit is contained in:
Ilya Lavrenov 2022-04-02 18:08:03 +03:00
parent 9446326040
commit 81aa7ccc38
2 changed files with 11 additions and 2 deletions

View File

@ -145,6 +145,9 @@ function(ov_add_lintian_suppression comp)
COMPONENT ${comp})
endfunction()
#
# Adds component for `comp`, but without a version
#
macro(ov_add_latest_component comp)
string(TOUPPER "${comp}" ucomp)
set(latest "${ucomp}_LATEST")
@ -177,7 +180,8 @@ macro(ov_debian_components)
foreach(item ${cpack_components_all})
# don't provide python components and deployment_manager to end users
if(# NOT ${item} MATCHES ".*(python).*" AND
NOT ${item} MATCHES "^${OV_CPACK_COMP_DEPLOYMENT_MANAGER}$")
NOT ${item} MATCHES "^tbb(_dev)?$" AND
NOT ${item} STREQUAL "{OV_CPACK_COMP_DEPLOYMENT_MANAGER}")
list(APPEND CPACK_COMPONENTS_ALL ${item})
endif()
endforeach()

View File

@ -13,6 +13,7 @@ include(GNUInstallDirs)
#
macro(ov_cpack_set_dirs)
# common IRC package locations
# TODO: move current variables to OpenVINO specific locations
set(OV_CPACK_INCLUDEDIR runtime/include)
set(OV_CPACK_IE_CMAKEDIR runtime/cmake)
set(OV_CPACK_NGRAPH_CMAKEDIR runtime/cmake)
@ -145,7 +146,11 @@ macro(ie_cpack)
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
elseif(CPACK_GENERATOR STREQUAL "DEB")
# include Debian dedicated per-component configuration file
ov_debian_components()
# NOTE: private modules need to define ov_debian_components macro
# for custom debian packages configuration
if(COMMAND ov_debian_components)
ov_debian_components()
endif()
endif()
include(CPack)