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

david_bjornbak at agilent.com david_bjornbak at agilent.com
Tue Jul 26 20:37:25 EDT 2011


Thanks, I got the following to work for me. 

set_target_properties( mylibname  PROPERTIES
 	  VERSION ${GENERIC_LIB_VERSION}
 	  SOVERSION ${GENERIC_LIB_SOVERSION}
 	)


-dave b.

-----Original Message-----
From: David Cole [mailto:david.cole at kitware.com] 
Sent: Tuesday, July 26, 2011 5:21 PM
To: BJORNBAK,DAVID (A-Sonoma,ex1)
Cc: cmake at cmake.org
Subject: Re: [CMake] Linux shared library suffixes and the soft link that matches

See target properties:

http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:VERSION

  and

http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:SOVERSION


On Tue, Jul 26, 2011 at 7:49 PM,  <david_bjornbak at agilent.com> wrote:
> 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.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list