mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 21:09:59 -05:00
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:
@@ -192,6 +192,10 @@ void cmGeneratorExpressionParser::ParseGeneratorExpression(
|
||||
{
|
||||
extendText(result, *commaIt);
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user