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.
This commit is contained in:
Stephen Kelly 2012-10-15 15:33:06 +02:00 committed by Brad King
parent e7230c71fd
commit 6dd2b36559
1 changed files with 4 additions and 0 deletions

View File

@ -192,6 +192,10 @@ void cmGeneratorExpressionParser::ParseGeneratorExpression(
{
extendText(result, *commaIt);
}
else
{
break;
}
}
}
return;