[cmake-developers] conditionals in generator expressions

Brad King brad.king at kitware.com
Thu Sep 13 11:08:29 EDT 2012


On 09/13/2012 10:34 AM, Stephen Kelly wrote:
> I'm getting errors that I can't investigate:
> 
> http://open.cdash.org/viewTest.php?onlydelta&buildid=2561961
> 
> I find it surprising that the windows builds segfault on this while the 
> linux ones dont. The code paths are not different.

The destructor of cmCompiledGeneratorExpression is deleting
the evaluators before they get used again in later evals.
Commenting out the "delete" line fixes the crash but probably
leaks.  You need to work out the ownership semantics.

-Brad



More information about the cmake-developers mailing list