Re: [CMake] transitive link flags

2011-11-06 Thread Michael Hertling
On 11/06/2011 07:04 PM, Luke Dalessandro wrote: > Hi everyone, > > I have a static library target that has some sources that rely on link-time > symbol interposition. > > Is there an existing way to set transitive link flags of the > "-Wl,--wrap,symbol" variety on the library target so that exe

Re: [CMake] transitive link flags

2011-11-06 Thread Luke Dalessandro
On Nov 6, 2011, at 4:26 PM, Łukasz Tasz wrote: >> As it is, I've written my own macro for linking with this particular >> library, essentially a custom target_link_libraries command: >> target_link_foo, that contains the right flags. This is basically >> unsatisfactory though, since I need to

Re: [CMake] transitive link flags

2011-11-06 Thread Luke Dalessandro
On Nov 6, 2011, at 2:12 PM, Łukasz Tasz wrote: > hi > > (target_link_libraries yourlib -Wl,--wrap,symbol) is not dooing the job? I am trying to do it on the (add_library foo ...) side, since that's the context that knows what symbols to link. Doing it on the (target_link_libraries) side requi

[CMake] transitive link flags

2011-11-06 Thread Luke Dalessandro
Hi everyone, I have a static library target that has some sources that rely on link-time symbol interposition. Is there an existing way to set transitive link flags of the "-Wl,--wrap,symbol" variety on the library target so that executables that depend on the library are automatically linked