Re: [cmake-developers] Linking Apple frameworks

2017-08-08 Thread Eric Wing
On 8/8/17, Brad King wrote: > On 08/07/2017 05:27 PM, Eric Wing wrote: >> I think that would be a mistake because it seems that the only purpose >> of this change would be so you could bypass CMake and try to directly >> invoke some kind of command line invocation on the dynamic library >> inside

Re: [cmake-developers] Linking Apple frameworks

2017-08-08 Thread Brad King
On 08/07/2017 05:27 PM, Eric Wing wrote: > I think that would be a mistake because it seems that the only purpose > of this change would be so you could bypass CMake and try to directly > invoke some kind of command line invocation on the dynamic library > inside the .framework bundle. The ld(1) m

Re: [cmake-developers] Linking Apple frameworks

2017-08-07 Thread Eric Wing
On 8/7/17, Brad King wrote: > On 08/05/2017 07:58 PM, Craig Scott wrote: >> target_link_libraries(foo PRIVATE "-framework AppKit") >> >> Strangely, with the library quoted as above, the embedded space >> is not escaped, leading to the (desirable but surprising) result > > Link flags starting i

Re: [cmake-developers] Linking Apple frameworks

2017-08-07 Thread Brad King
On 08/05/2017 07:58 PM, Craig Scott wrote: > target_link_libraries(foo PRIVATE "-framework AppKit") > > Strangely, with the library quoted as above, the embedded space > is not escaped, leading to the (desirable but surprising) result Link flags starting in `-` are treated as a raw part of th

Re: [cmake-developers] Linking Apple frameworks

2017-08-05 Thread Eric Wing
On 8/5/17, Craig Scott wrote: > I'm exploring the behaviour of target_link_libraries() where the library to > be linked is an Apple framework. As part of this, I noticed that the > following does not work: > > target_link_libraries(foo PRIVATE -framework AppKit) > > > This fails because the link c

[cmake-developers] Linking Apple frameworks

2017-08-05 Thread Craig Scott
I'm exploring the behaviour of target_link_libraries() where the library to be linked is an Apple framework. As part of this, I noticed that the following does not work: target_link_libraries(foo PRIVATE -framework AppKit) This fails because the link command ends up with -framework -lAppKit inst