Use the cmJoin algorithm where possible.

This commit is contained in:
Stephen Kelly
2015-01-07 08:58:51 +01:00
parent 8dc8d756bc
commit 55a73e6b1f
14 changed files with 27 additions and 213 deletions

View File

@@ -91,15 +91,7 @@ void cmTargetIncludeDirectoriesCommand
if (system)
{
std::string joined;
std::string sep;
for(std::vector<std::string>::const_iterator it = content.begin();
it != content.end(); ++it)
{
joined += sep;
sep = ";";
joined += *it;
}
std::string joined = cmJoin(content, ";");
tgt->AppendProperty("INTERFACE_SYSTEM_INCLUDE_DIRECTORIES",
joined.c_str());
}