[CMake] cmake 2.2: builddir rpath encoded into installed binary
Brad King
brad.king at kitware.com
Wed Apr 26 13:46:20 EDT 2006
Michael Biebl wrote:
> Hi all,
>
> I got project where I create a lib (libfoo) and a binary (bar) where
> bar links against libfoo.
> If I run objdump -p bar on the uninstalled binary in $builddir/src I
> get RPATH=$builddir/src.
> If I run make install the resulting binary still has RPATH set to
> $builddir/src. (Note: this does not happen with cmake 2.4). As I can't
> enforce the usage of cmake 2.4, how can I tell cmake 2.2 to not encode
> the rpath into the installed binary?
Set CMAKE_SKIP_RPATH to ON. Then you will get no RPATH at all.
-Brad
More information about the CMake
mailing list