[cmake-developers] Printing the origin of include dirs
Brad King
brad.king at kitware.com
Tue Dec 18 11:59:42 EST 2012
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.
-Brad
More information about the cmake-developers
mailing list