[CMake] Installed project with shared libs

Tanner Lovelace clubjuggler at gmail.com
Thu Feb 23 17:50:46 EST 2006


On 2/23/06, Brad King <brad.king at kitware.com> wrote:
> You can set CMAKE_SKIP_RPATH in the advanced cache options to disable
> the rpaths that point at the build tree (this works with any CMake
> version).  Then the installed libraries will not have any rpath.
> Programs can be executed by adding their location to LD_LIBRARY_PATH.

Does this actually work on OS X? (Since he stated he was using
dylibs, which, afaik, are only on OS X or Darwin.)  AFAIK, the full path
to the library is always included in dylibs and you can't turn it off.
(See http://developer.apple.com/releasenotes/DeveloperTools/dyld.html
near the bottom where it lists "no rpath support".)
What do you do in this case?

Cheers,
Tanner Lovelace

--
Tanner Lovelace
clubjuggler at gmail dot com
http://wtl.wayfarer.org/
(fieldless) In fess two roundels in pale, a billet fesswise and an
increscent, all sable.


More information about the CMake mailing list