[CMake] LINK_FLAGS works incorrectly,

2011-04-18 Thread Łukasz Tasz
Hi all, I got a simple question, What is idea behind target property LINK_FLAGS? When I add linker flag e.g --no-undefined then cmake is not alligning it to real linker that will be used during linking. for example --no-undefined is a valid ld switch, but when I specify it LINK_FLAGS it will

Re: [CMake] LINK_FLAGS works incorrectly,

2011-04-18 Thread Michael Wild
On 04/18/2011 03:25 PM, Łukasz Tasz wrote: Hi all, I got a simple question, What is idea behind target property LINK_FLAGS? When I add linker flag e.g --no-undefined then cmake is not alligning it to real linker that will be used during linking. for example --no-undefined is a valid

Re: [CMake] LINK_FLAGS works incorrectly,

2011-04-18 Thread t m
I got a simple question, What is idea behind target property LINK_FLAGS? When I add linker flag e.g --no-undefined then cmake is not alligning it to real linker that will be used during linking. for example --no-undefined is a valid ld switch, but when I specify it LINK_FLAGS it will not

Re: [CMake] LINK_FLAGS works incorrectly,

2011-04-18 Thread Hendrik Sattler
Am Montag 18 April 2011, 15:25:24 schrieb Łukasz Tasz: Hi all, I got a simple question, What is idea behind target property LINK_FLAGS? When I add linker flag e.g --no-undefined then cmake is not alligning it to real linker that will be used during linking. for example --no-undefined

Re: [CMake] LINK_FLAGS works incorrectly,

2011-04-18 Thread Łukasz Tasz
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

Re: [CMake] LINK_FLAGS works incorrectly,

2011-04-18 Thread Michael Wild
On 04/18/2011 07:37 PM, Łukasz Tasz wrote: 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