Hi,

Of course I read manual. But I'm a little bit confused. That's why I'm
asking about idea behind LINK_FLAGS,

Cmake is not consequent because when I'm adding:

add_library(test foo.cxx bar.cxx)
SET_TARGET_PROPERTIES( test PROPERTIES SOVERSION 1.2 VERSION 1.1)

it 'magicaly knows' how to build linking commands and according to gcc
manual it is done in a way:

-Wl,-soname,libtest.so.1.2


I'm also fine with answer that it is not implemented, and I need to
handle it by myself.
I would like to understand why for some linker switches cmake is
aligning it correctly, for some not.

best regards
Lukasz

>
> However, there are flags for the linking stage of the compiler that do not
> directly translate to -Wl,--somthing but e.g. instruct gcc what libraries to
> use (or not) for linking.
> Just look at "Options for Linking" in  "man gcc".
>
> HS
>



-- 
Lukasz Tasz
_______________________________________________
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