Skip to content

Commit

Permalink
Use system TBB by default for Deb, RPM (openvinotoolkit#24613)
Browse files Browse the repository at this point in the history
### Details:
 - Otherwise, currently users have error during Debian package build
  • Loading branch information
ilya-lavrenov authored May 23, 2024
1 parent f2fdb4b commit fc6af4f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmake/features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,15 @@ else()
set(ENABLE_SYSTEM_FLATBUFFERS_DEFAULT ON)
endif()

ov_dependent_option (ENABLE_SYSTEM_TBB "Enables use of system TBB" OFF "THREADING MATCHES TBB" OFF)
# use system TBB only for Debian / RPM packages
if(CPACK_GENERATOR MATCHES "^(DEB|RPM|CONDA-FORGE|BREW|CONAN|VCPKG)$")
set(ENABLE_SYSTEM_TBB_DEFAULT ${ENABLE_SYSTEM_LIBS_DEFAULT})
else()
set(ENABLE_SYSTEM_TBB_DEFAULT OFF)
endif()

ov_dependent_option (ENABLE_SYSTEM_TBB "Enables use of system TBB" ${ENABLE_SYSTEM_TBB_DEFAULT}
"THREADING MATCHES TBB" OFF)
ov_option (ENABLE_SYSTEM_PUGIXML "Enables use of system PugiXML" OFF)
# the option is on by default, because we use only flatc compiler and don't use any libraries
ov_dependent_option(ENABLE_SYSTEM_FLATBUFFERS "Enables use of system flatbuffers" ${ENABLE_SYSTEM_FLATBUFFERS_DEFAULT}
Expand Down

0 comments on commit fc6af4f

Please sign in to comment.