[CMake] Relink during install to get correct rpath in the binary?
Chris Scharver
scharver at gmail.com
Mon Nov 21 11:33:54 EST 2005
On 11/20/05, Brad King <brad.king at kitware.com> wrote:
>
> The rpath feature of CMake is intended to help developers use projects
> with shared libraries from the build tree without setting
> LD_LIBRARY_PATH or their platform's equivalent. Many linux/unix people
> consider rpaths evil for installed programs, and many linux
> distributions ban them altogether. The idea is that installed shared
> libraries should be in the system's shared library search path
> (ld.so.conf or equivalent) so they can be shared among applications.
So how exactly does this get handled on Mac OS X with install_name?
I've tried setting the variable so that CMAKE_SKIP_RPATH is OFF, but I
still get libraries with build library locations embedded in them
rather than the INSTALL_PREFIX. Is extra work required when writing
the CMakeLists.txt in order to get CMake to use the correct
install_name?
-Chris
More information about the CMake
mailing list