[CMake] Is it possible to set shared lib version info globally?

Hendrik Sattler post at hendrik-sattler.de
Tue Mar 2 07:34:17 EST 2010


Zitat von Mario Ceresa <mrceresa at gmail.com>:

> Hello all,
> thanks for the wonderful work with cmake: I've started using it in all
> my projects!
>
> I'm trying to package VXL for Fedora and package guidelines require
> all libs to be properly versioned.
>
> My problem is that the actual cmake build of the project produces only
> unversioned shared lib (they are all lib*.so not lib*.so.xx).
>
> Is there a way to add version information globally, for all libraries?
> Or do I have to manually search where each lib is generated and add
> set_target_properties() to each?
>
> I'm sorry if I made a silly question, but I googled for a while and
> found nothing

Usually, you try to stay compatible with other distribution and thus  
look what they did:
http://patch-tracker.debian.org/patch/series/view/vxl/1.13.0-2/vxl.soname.patch

I've put the debian maintainers into CC, so you can talk with them directly.

HS




More information about the CMake mailing list