[cmake-developers] EXPORT_NAME-genex

Stephen Kelly steveire at gmail.com
Mon May 20 16:47:14 EDT 2013


Alexander Neundorf wrote:

>> > the value and cost.
>> 
>> value:
>>  * We can assume that NS::foo is an imported target and error if not
>>  found
> 
> Since it was never forbidden and not even officially recommended to use
> "::" when exporting targets, I'm not sure the "::" should be used for the
> decision whether an error is generated or not.

The proposal is to recommend it. The incentive is better error checking.

> Also, the "::" is only a strong indication, not more.
> E.g. I can build the attached example using the ninja generator.

Yes, I raised the same issue when I brought this up before:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/6106/focus=6695

> And as I said already before, I would not recommend using imported target
> names directly.

In some cases, handling the imported target can not be avoided, as Friedrich 
just discovered:

 http://thread.gmane.org/gmane.comp.kde.devel.core/79205

So, I don't think we should pretent they don't exist, or try to hide the 
fact that they exist.

Thanks,

Steve.





More information about the cmake-developers mailing list