stevedekorte/io — pull request #166 by eradman (2011-11-11 17:43:33+00:00)
Title: Set RPATH if the the install prefix is a non-system location

$ readelf -d /home/eradman/local/bin/io | grep RPATH
0x0000000f (RPATH) Library rpath: [/home/eradman/local/lib]
$

$ readelf -d /usr/local/bin/io | grep RPATH
$

On UNIX this allows users to do a non-root install without setting LD_LIBRARY_PATH. Change lifted directly from http://www.vtk.org/Wiki/CMake_RPATH_handling