[CMake] cmake 2.2: builddir rpath encoded into installed binary

Michael Biebl mbiebl at gmail.com
Wed Apr 26 13:12:35 EDT 2006


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?

TIA,
Michael


More information about the CMake mailing list