[cmake-developers] Policy for INTERFACE_LINK_LIBRARIES

Stephen Kelly steveire at gmail.com
Thu Nov 29 14:24:04 EST 2012


Brad King wrote:
> Perhaps part of the NEW
> behavior of CMP0019 can be that LINK_PUBLIC/LINK_PRIVATE do
> not populate the old interface.  Anyone that wants to provide
> both interfaces can set the policy to NEW and then set the
> old interface explicitly.

And for the usecase of 'foo doesn't link to bar, but if using foo you need 
bar', is

 target_link_libraries(foo INTERFACE bar)

ok? 

That is currently what LINK_INTERFACE_LIBRARIES does, but it would be odd 
for that to not populate the old interface if the policy is NEW.

Thanks,

Steve.





More information about the cmake-developers mailing list