[CMake] absolute rpath

Alexander Neundorf a.neundorf-work at gmx.net
Wed Mar 5 15:06:34 EST 2008


On Wednesday 05 March 2008, Jörg Becker wrote:
> On Tuesday 04 March 2008 22:10, Alexander Neundorf wrote:
> > Indeed, with cmake 2.4.6 and 2.4.8 "." is expanded to the current dir,
> > with cmake cvs HEAD it stays "." in the executable (is this then actually
> > relative to the location of the executable or to the current working
> > directory ?)
>
> It is relative to the current working directory. This is one reason why it
> is an unsatisfying  workaround. If you miss to change the directory, the
> executable will not find the shared objects and could not start.

Ok.
So it doesn't make sense at all .
OSX has something like @executable_dir, Syllable has that too for RPATH, this 
might be nice to have.

Alex


More information about the CMake mailing list