[cmake-developers] Generator expressisons in target properties

Stephen Kelly steveire at gmail.com
Wed Nov 7 08:35:13 EST 2012


Stephen Kelly wrote:

> add_library(foo SHARED IMPORTED)
> set_property(TARGET foo INTERFACE_LINK_LIBRARIES bar)
> set_property(TARGET foo LINK_INTERFACE_LIBRARIES_DEBUG bat)

I forgot to also populate the LINK_INTERFACE_LIBRARIES in all cases. Eg:

 set_property(TARGET foo LINK_INTERFACE_LIBRARIES bar)

But that doesn't change anything wrt duplication either.

Thanks,

Steve.





More information about the cmake-developers mailing list