From d140263a497b4a86818ab5e2017a66df43eb83fb Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Fri, 8 Oct 2021 09:14:03 +0900 Subject: Imported Upstream version 3.15.0 --- Source/cmIncludeDirectoryCommand.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Source/cmIncludeDirectoryCommand.cxx') diff --git a/Source/cmIncludeDirectoryCommand.cxx b/Source/cmIncludeDirectoryCommand.cxx index 549a263e3..62e2abdcd 100644 --- a/Source/cmIncludeDirectoryCommand.cxx +++ b/Source/cmIncludeDirectoryCommand.cxx @@ -6,6 +6,7 @@ #include #include +#include "cmAlgorithms.h" #include "cmGeneratorExpression.h" #include "cmMakefile.h" #include "cmSystemTools.h" @@ -52,11 +53,9 @@ bool cmIncludeDirectoryCommand::InitialPass( this->GetIncludes(*i, includes); if (before) { - beforeIncludes.insert(beforeIncludes.end(), includes.begin(), - includes.end()); + cmAppend(beforeIncludes, includes); } else { - afterIncludes.insert(afterIncludes.end(), includes.begin(), - includes.end()); + cmAppend(afterIncludes, includes); } if (system) { systemIncludes.insert(includes.begin(), includes.end()); -- cgit v1.2.3