VTK 9.0.0RC2: Does not work on Linux with TBB 2019 Update9 or newer

Hi all,

I’ve been trying VTK9.0RC2 with TBB on Ubuntu 19.10 and there seems to be a problem when VTK is build with TBB_2019_Update9 or newer.

When using this combination of VTK and TBB to build a VTK Example (e.g. Diagram), I get the following CMake Error during Configuration:

Required library TBB not found.
Call Stack (most recent call first):
  /home/test/src/vtk/build/VTK-9.0.0.rc2_tbbTest/lib/cmake/vtk-9.0/FindTBB.cmake:346 (findpkg_finish)
  /home/test/src/vtk/build/VTK-9.0.0.rc2_tbbTest/lib/cmake/vtk-9.0/VTK-vtk-module-find-packages.cmake:532 (find_package)
  /home/test/src/vtk/build/VTK-9.0.0.rc2_tbbTest/lib/cmake/vtk-9.0/vtk-config.cmake:129 (include)
  /home/test/src/vtk/build/VTK-9.0.0.rc2_tbbTest/vtk-config.cmake:1 (include)
  CMakeLists.txt:10 (find_package)

According to the TBB release notes (https://github.com/oneapi-src/oneTBB/releases/tag/2019_U9), the TBB binary packages for Linux are now only build with GCC4.8.

The FindTBB.cmake in VTK only checks for GCC 4.1, 4.4 and 4.7, can this be the cause of the issue?



It looks like this as simple as adding to the ABI detection block. Cc: @RobertMaynard

Does this patch work? https://gitlab.kitware.com/vtk/vtk/-/merge_requests/6763


Thanks for the quick fix. Now it works (tested with TBB 2020_U2).