Plugins build against ParaView lead to TBB target error
Using cmake v 3.22 and TBB v 2021.4.0-1, I have build a ParaView that internally use TBB (for SMPTools, OIDN and VTKm). When configuring any plugin agains this paraview, I have the following error:
CMake Error at /usr/lib64/cmake/TBB/TBBTargets.cmake:37 (message):
Some (but not all) targets in this export set were already defined.
Targets Defined: TBB::tbb;TBB::tbbmalloc;TBB::tbbmalloc_proxy
Targets not yet defined: TBB::tbbbind_2_5;TBB::irml
Call Stack (most recent call first):
/usr/lib64/cmake/TBB/TBBConfig.cmake:1 (include)
/home/charles/Software/install/paraview/lib/cmake/paraview-5.10/vtk/FindTBB.cmake:87 (find_package)
/home/charles/Software/install/paraview/lib/cmake/paraview-5.10/vtk/VTK-vtk-module-find-packages.cmake:697 (find_package)
/home/charles/Software/install/paraview/lib/cmake/paraview-5.10/vtk/vtk-config.cmake:150 (include)
/home/charles/Software/install/paraview/lib/cmake/paraview-5.10/paraview-config.cmake:66 (find_package)
CMakeLists.txt:9 (find_package)
I had this problem after an update of TBB and CMake, I do not think this is due to a change in ParaView itself @mwestphal @ben.boeckel FYI
Edited by Mathieu Westphal (Kitware)