[cmake-developers] Policy for INTERFACE_LINK_LIBRARIES

Stephen Kelly steveire at gmail.com
Mon Dec 10 09:52:54 EST 2012


Brad King wrote:

> IIRC the topic that added dependent export support was only
> finished for the install(EXPORT) command and not for export().
> It added a test for the install case mixing namespaces:
> 
>  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=955b9662
> 
> It appears to work. 

Yes. I refactored my topic to use the same logic/code as is used there. 

That involved removing the EXPORT_NAMESPACE generator and adding a new 
$<TARGET> generator which is a preprocessor-marker accepting only literals 
for pointing out target names. Those target names only need to be extracted 
at export time.

I think the name $<TARGET> is suitable, but I don't mind changing it.

Thanks,

Steve.





More information about the cmake-developers mailing list