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
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to