2012/9/6 Anton Sibilev <[email protected]>:
> Hi all!
>
> I'm making shared library with add_library(xxx SHARED xxx.c) and as result I
> got 'libxxx.so'.
> I want to create lib with name like 'libxxx.so.1', can you please help, how
> to make this?

set_target_properties(xxx PROPERTIES VERSION 1.0.0 SOVERSION 1)

see:
cmake --help-property SOVERSION

> Point is not to create link or copy libxxx.so -> libxxx.so.1, but to create
> it initially.

VERSION mangle the name with version
SOVERSION creates the link

You can drive the [output] name of a target (either library or executable)
using OUTPUT_NAME property
cmake --help-property OUTPUT_NAME

But I don't think you c
-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--

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

Reply via email to