[cmake-developers] conditionals in generator expressions

Stephen Kelly steveire at gmail.com
Thu Sep 13 12:44:42 EDT 2012


Brad King wrote:

> 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.
> 

Thanks. I'm too used to everything being implicitly shared :). Valgrind 
didn't show the problem, interestingly enough.

I've fixed it now I think.

Thanks,

Steve.
 




More information about the cmake-developers mailing list