Set the RUNPATH of installed shared libraries to "$ORIGIN"

how should this work with libraries like libTBB.so?
for building vtk its not a problem, but with something donstream uses vtk (vtl built with TBB). the downstream can’t find the TBB library.

I tried setting CMAKE_INSTALL_RPATH for TBB and VTK to the install/lib directories. things still only work when I set LD_LIBRARY_PATH to the TBB lib directory.

I saw this post [ vtk shared library lookup on linux](vtk shared library lookup on linux - #3 by Harald_Scheirich). but using (CMAKE_INSTALL_RPATH $Origin)

I am a bit confused.