[cmake-developers] Generator expressisons in target properties

Brad King brad.king at kitware.com
Mon Nov 19 08:14:33 EST 2012


On 11/18/2012 04:12 PM, Stephen Kelly wrote:
> This will require that the INCLUDE_DIRECTORIES properties not be handled in 
> the regular way, but as a std::vector<IncludeDirectoryEntry> where:
> 
> struct IncludeDirectoryEntry 
> {
>   cmCompiledGeneratorExpression ge;
>   bool IsCMP0020Entry; 
> };
> 
> On the plus-side this means that we'll get proper backtraces from errors in 
> generator expressions for includes.

That sounds fine to me.  As long as the CMake-language interface
remains unchanged the underlying implementation of a property
does not matter.  Just make sure that when someone sets the value
of the property to a given string and then gets the value they get
the *identical* original string back.

Thanks,
-Brad



More information about the cmake-developers mailing list