From 6dd2b365596c08b4799e0ebec92333519aac283a Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 15 Oct 2012 15:33:06 +0200 Subject: [PATCH] GenEx: Break if there are no more commas in the container This was causing an assert on Windows which has safety features for iterating past the end of the container. --- Source/cmGeneratorExpressionParser.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmGeneratorExpressionParser.cxx b/Source/cmGeneratorExpressionParser.cxx index 341832a18..64d992a31 100644 --- a/Source/cmGeneratorExpressionParser.cxx +++ b/Source/cmGeneratorExpressionParser.cxx @@ -192,6 +192,10 @@ void cmGeneratorExpressionParser::ParseGeneratorExpression( { extendText(result, *commaIt); } + else + { + break; + } } } return;