ParaView/Superbuild doesn't properly specify where to find local dependencies for non-relocatable installs
Originally reported by @ethan.stam in ( #18224 (comment 488078) )
I built the master branches of ParaView (71e8f646) with the master branch of superbuild successfully on a cray system.
When I try to build another project depending on that ParaView, I still get the same error:
CMake Error at /usr/projects/paraview/stam/trinitite/master-osmesa_intel-18.0.2_cray-mpich-7.7.1_python-2.7-anaconda-4.1.1/lib/cmake/paraview-5.6/vtkm/FindTBB.cmake:80 (message):
Required library TBB not found.
Call Stack (most recent call first):
/usr/projects/paraview/stam/trinitite/master-osmesa_intel-18.0.2_cray-mpich-7.7.1_python-2.7-anaconda-4.1.1/lib/cmake/paraview-5.6/vtkm/FindTBB.cmake:294 (findpkg_finish)
/usr/projects/paraview/stam/trinitite/master-osmesa_intel-18.0.2_cray-mpich-7.7.1_python-2.7-anaconda-4.1.1/lib/cmake/paraview-5.6/vtkm/VTKmDeviceAdapters.cmake:55 (find_package)
/usr/projects/paraview/stam/trinitite/master-osmesa_intel-18.0.2_cray-mpich-7.7.1_python-2.7-anaconda-4.1.1/lib/cmake/paraview-5.6/vtkm/VTKmWrappers.cmake:23 (include)
/usr/projects/paraview/stam/trinitite/master-osmesa_intel-18.0.2_cray-mpich-7.7.1_python-2.7-anaconda-4.1.1/lib/cmake/paraview-5.6/vtkm/VTKmConfig.cmake:129 (include)
/usr/projects/paraview/stam/trinitite/master-osmesa_intel-18.0.2_cray-mpich-7.7.1_python-2.7-anaconda-4.1.1/lib/cmake/paraview-5.6/VTKConfig.cmake:105 (find_package)
cmake/ShaPoVTK.cmake:13 (find_package)
CMakeLists.txt:164 (include)
I'm using a build script to set up the environment. If I set TBB_ROOT and TBB_INCLUDE_DIR and use the cmake variable -DTBB_INCLUDE_DIR=$TBB_INCLUDE_DIR in that build script, it finds the TBB libraries.