TBB target not found when compiling an external plugin for ParaView
Similarly to the issue #19232 (closed), but for TBB.
We are building a collection of filters in a Paraview plugin and have encountered an error when ParaView is compiled with the option:
VTK_SMP_IMPLEMENTATION_TYPE=TBB. During the generate phase of our project we have the following error:
CMake Error at /home/charles/Software/install/ParaView/lib64/cmake/paraview-5.7/ParaViewPlugin.cmake:1260 (add_library): Target "TopologyToolKit" links to target "TBB::tbb" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): paraview/singlePlugin/CMakeLists.txt:1 (paraview_add_plugin) CMake Error at /home/charles/Software/install/ParaView/lib64/cmake/paraview-5.7/vtkModuleWrapClientServer.cmake:179 (add_library): Target "ttkUncertainDataEstimatorCS" links to target "TBB::tbb" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): /home/charles/Software/install/ParaView/lib64/cmake/paraview-5.7/vtkModuleWrapClientServer.cmake:304 (_vtk_module_wrap_client_server_library) /home/charles/Software/install/ParaView/lib64/cmake/paraview-5.7/ParaViewPlugin.cmake:979 (vtk_module_wrap_client_server) paraview/singlePlugin/CMakeLists.txt:1 (paraview_add_plugin)
Once again, I think this is more a VTK issue but I post it here since I need to have it fixed into ParaView. Tell me if this is not a good practice and I will move it to the VTK gitlab.
@ben.boeckel can you help me with this one ?