[cmake-developers] ExportImport test failures

Stephen Kelly steveire at gmail.com
Mon May 20 06:37:52 EDT 2013


Alexander Neundorf wrote:

> Having LINK_INTERFACE_LIBRARIES and INTERFACE_LINK_LIBRARIES will make it
> hard to remember which one is the deprecated one and which one is the
> recommended one.
> 

I recommend INTERFACE_LINK_LIBRARIES for the property name (for consistency 
with the other new properties, but rarely used or needed), and INTERFACE for 
the keyword in tll (for consistency with the other new commands).

 target_link_libraries(foo LINK_INTERFACE_LIBRARIES bar) # Old 
 target_link_libraries(foo INTERFACE bar) # New
 target_compile_definitions(foo INTERFACE FOO_IFACE)

Thanks,

Steve.





More information about the cmake-developers mailing list