[CMake] How to make a shared library to use relative paths to the executable
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Oct 25 12:11:53 EDT 2011
On Tuesday 25 October 2011, Alexander Neundorf wrote:
...
> If you want to create a zip file, you should use "make package" to do that.
> During that step also "make install" will be executed.
> In that step the install RPATH will be patched into the ELF files.
> By default this will be empty (so the libs won't be found).
> But you can set it explicitely using target properties.
> If you want relative RPATH, you can use @ORIGIN for ELF files, e.g. for
> executables in bin you can set @ORIGIN/../lib/ (or just @ORIGIN as in your
> setup).
I think it's $ORIGIN, not @ORIGIN.
Alex
More information about the CMake
mailing list