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.


--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to