[CMake] Getting an RPath set in a Library

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu Jun 28 16:42:12 EDT 2007


On 2007-06-28 16:33-0400 Mike Jackson wrote:

> I have a project where I am building a shared library. How do I get cmake to 
> add an rpath to the built library? I would like the rpath to reflect my 
> "installed" location? I am on OS X 10.4.10 Intel.

>From the documentation of SET_TARGET_PROPERTIES I believe
INSTALL_NAME_DIR is what you want for Mac OS X.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list