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.


--

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