diff options
Diffstat (limited to 'Source/cmGeneratorExpressionParser.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionParser.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionParser.cxx b/Source/cmGeneratorExpressionParser.cxx index 7aa3314..304378d 100644 --- a/Source/cmGeneratorExpressionParser.cxx +++ b/Source/cmGeneratorExpressionParser.cxx @@ -2,6 +2,7 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmGeneratorExpressionParser.h" +#include "cmAlgorithms.h" #include "cmGeneratorExpressionEvaluator.h" #include <assert.h> @@ -52,9 +53,9 @@ static void extendResult( textContent->Extend( static_cast<TextContent*>(contents.front())->GetLength()); delete contents.front(); - result.insert(result.end(), contents.begin() + 1, contents.end()); + cmAppend(result, contents.begin() + 1, contents.end()); } else { - result.insert(result.end(), contents.begin(), contents.end()); + cmAppend(result, contents); } } |