diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-10-15 13:33:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-10-17 20:21:13 (GMT) |
commit | 6dd2b365596c08b4799e0ebec92333519aac283a (patch) | |
tree | a39c7ae67d7a8e6d7864b5e70e8714560a011dbb | |
parent | e7230c71fdf9ed58b2e8fbf2064452a41ea57180 (diff) | |
download | CMake-6dd2b365596c08b4799e0ebec92333519aac283a.zip CMake-6dd2b365596c08b4799e0ebec92333519aac283a.tar.gz CMake-6dd2b365596c08b4799e0ebec92333519aac283a.tar.bz2 |
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.
-rw-r--r-- | Source/cmGeneratorExpressionParser.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpressionParser.cxx b/Source/cmGeneratorExpressionParser.cxx index 341832a..64d992a 100644 --- a/Source/cmGeneratorExpressionParser.cxx +++ b/Source/cmGeneratorExpressionParser.cxx @@ -192,6 +192,10 @@ void cmGeneratorExpressionParser::ParseGeneratorExpression( { extendText(result, *commaIt); } + else + { + break; + } } } return; |