Thanks for the pointer. But why is the RPATH of the builddir encoded into the installed binary? I can understand that you need it if you want to run the uninstalled binary from the builddir but not the installed one. Is this a known bug in cmake 2.2 (as it seems to work correctly in cmake 2.4)?
Cheers, Michael On 4/26/06, Brad King <[EMAIL PROTECTED]> wrote: > 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