[cmake-developers] Printing the origin of include dirs

Stephen Kelly steveire at gmail.com
Tue Dec 18 13:59:34 EST 2012


Brad King wrote:

> On 12/18/2012 11:49 AM, Stephen Kelly wrote:
>> Brad King wrote:
>>> The cmPropertyMap/cmProperty infrastructure could potentially store
>>> structures with the string values plus meta-data instead of just the
>>> strings as now.
>> 
>> That sounds more complex to me. Would the possible meta-data be defined
>> as a c++ struct? What would it contain?
> 
> Perhaps something like
> 
> +  struct IncludeDirectoriesEntry {
> +   
> IncludeDirectoriesEntry(cmsys::auto_ptr<cmCompiledGeneratorExpression>
> cge)
> +      : ge(cge)
> +    {}
> +    const cmsys::auto_ptr<cmCompiledGeneratorExpression> ge;
> +  };
> +  std::vector<IncludeDirectoriesEntry*> IncludeDirectoriesEntries;
> 
> ?  If the cmProperty API were virtual then a property definition could
> specify the subclass used to represent the property.  One of the options
> could be a vector of generator expressions.

Can you think of what another option might be? Otherwise it's hard to 
generalize the interface.

Thanks,

Steve.





More information about the cmake-developers mailing list