[CMake] Linux shared library suffixes and the soft link that matches

david_bjornbak at agilent.com david_bjornbak at agilent.com
Tue Jul 26 19:49:14 EDT 2011


Is there's a standard way under CMake to produce Linux shared libraries with the numbered suffix and then soft link that references the library with a numbered suffix.  For example,  it's common to have a build a library foo with the name  libfoo.so.1.2.3 and then have a soft link named libfoo.so to point to it.

The following is an example of the libz using this configuration.

lrwxrwxrwx  1 root root    15 Jun 16 11:23 libz.so -> libz.so.1.2.1.2
lrwxrwxrwx  1 root root    15 Jun 16 11:23 libz.so.1 -> libz.so.1.2.1.2
-rwxr-xr-x  1 root root 63624 Jul 12  2005 libz.so.1.2.1.2


-dave b.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110726/47957633/attachment-0001.htm>


More information about the CMake mailing list