[CMake] absolute rpath

Alexander Neundorf a.neundorf-work at gmx.net
Thu Feb 21 11:50:02 EST 2008


On Thursday 21 February 2008, Jörg Becker wrote:
> On Wednesday, 20. February 2008 19:08:27 Hendrik Sattler wrote:
> > Windows searches in '.' for DLLs by default. You don't have to do
> > anything to achieve that.
>
> Yes and windows has no rpath. Perhaps I wasn't clear enough. I want (more
> exactly: have) to have the windows behavior on linux. Which means I want to
> set the rpath to '.' in my linux executables and shared objects to enable
> them to find the shared objects they depend on automatically (in case they
> are installed in the same directory), without relinking them, changing PATH
> or LD_LIBRARY_PATH.

See my previous mail. If you want to have this rpath already in the build 
tree, additionally set the BUILD_WITH_INSTALL_RPATH target property to TRUE.


More information about the CMake mailing list