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:
parent
e7230c71fd
commit
6dd2b36559
|
@ -192,6 +192,10 @@ void cmGeneratorExpressionParser::ParseGeneratorExpression(
|
|||
{
|
||||
extendText(result, *commaIt);
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue