Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions cmake/modules/SearchInstalledSoftware.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1240,8 +1240,10 @@ if(imt AND NOT builtin_tbb)
endif()
endif()

# Check that the found TBB does not use captured exceptions.
if(TBB_FOUND)
# Check that the found TBB does not use captured exceptions. If the header
# <tbb/tbb_config.h> does not exist, assume that we have oneTBB newer than
# version 2021, which does not have captured exceptions anyway.
if(TBB_FOUND AND EXISTS "${TBB_INCLUDE_DIRS}/tbb/tbb_config.h")
set(CMAKE_REQUIRED_INCLUDES "${TBB_INCLUDE_DIRS}")
check_cxx_source_compiles("
#include <tbb/tbb_config.h>
Expand Down
1 change: 0 additions & 1 deletion core/imt/src/RTaskArena.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Require TBB without captured exceptions
#define TBB_USE_CAPTURED_EXCEPTION 0
#include "tbb/tbb_config.h"

#include "ROOT/RTaskArena.hxx"
#include "ROpaqueTaskArena.hxx"
Expand Down
1 change: 0 additions & 1 deletion core/imt/src/TThreadExecutor.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Require TBB without captured exceptions
#define TBB_USE_CAPTURED_EXCEPTION 0
#include "tbb/tbb_config.h"

#include "ROOT/TThreadExecutor.hxx"
#include "ROpaqueTaskArena.hxx"
Expand Down