summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-07 07:58:51 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-08 21:28:18 (GMT)
commit55a73e6b1f70b3c8a783b130dff4c4689cea5ba2 (patch)
treeac22109c28ecd6b59d6f538efdc8ece375388928 /Source/cmMakefile.cxx
parent8dc8d756bc278cd02f329b31218c2459908dc0bb (diff)
downloadCMake-55a73e6b1f70b3c8a783b130dff4c4689cea5ba2.zip
CMake-55a73e6b1f70b3c8a783b130dff4c4689cea5ba2.tar.gz
CMake-55a73e6b1f70b3c8a783b130dff4c4689cea5ba2.tar.bz2
Use the cmJoin algorithm where possible.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 20dae5a..590aa5f 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1791,22 +1791,12 @@ void cmMakefile::AddIncludeDirectories(const std::vector<std::string> &incs,
return;
}
- std::string incString;
- std::string sep;
-
- for(std::vector<std::string>::const_iterator li = incs.begin();
- li != incs.end(); ++li)
- {
- incString += sep + *li;
- sep = ";";
- }
-
std::vector<cmValueWithOrigin>::iterator position =
before ? this->IncludeDirectoriesEntries.begin()
: this->IncludeDirectoriesEntries.end();
cmListFileBacktrace lfbt = this->GetBacktrace();
- cmValueWithOrigin entry(incString, lfbt);
+ cmValueWithOrigin entry(cmJoin(incs, ";"), lfbt);
this->IncludeDirectoriesEntries.insert(position, entry);
// Property on each target: