[CMake] How to prevent relinking targets with shared libraries

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu Feb 21 16:23:07 EST 2008


On 2008-02-21 21:57+0100 blinkeye wrote:

> [...]At the moment I'm just creating plain .so libs, without any 
> version number (so far I didn't happen to come across a shared library 
> tutorial with cmake), maybe this is the problem? Does cmake support such a 
> versioning and would that resolve the relinking?

There is full support for shared libraries (at least on my Linux platform).

Look at the documentation of SET_TARGET_PROPERTIES (especially where
it mentions VERSION, SOVERSION, and RPATH.)

HTH.

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