Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cmake/FindTBB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
## target TBB can be found where the component targets TBB:comp are out of scope, causing an
## error at line 222

#===============================================================================
# Try to find modern system-provided TBB first
find_package(TBB CONFIG QUIET)
if(TBB_FOUND)
# System TBB found, use it and skip the rest of this legacy script
return()
endif()
#===============================================================================
# This script will attempt to find TBB and set up a TBB target.
#
Expand Down