If the RPATH is not set, then link errors occur at runtime as the dynamic linker cannot find the llvm libraries.
For example, ldd libamd_comgr.so reports ibclangFrontend.so.9svn => not found
By setting the RPATH, the dynamic linker knows where to look for the llvm libraries.
If the RPATH is not set, then link errors occur at runtime as the dynamic linker cannot find the llvm libraries. For example,
ldd libamd_comgr.so
reportsibclangFrontend.so.9svn => not found
By setting the RPATH, the dynamic linker knows where to look for the llvm libraries.See https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling