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
+1 -9
View File
@@ -40,15 +40,7 @@ void cmTargetCompileFeaturesCommand
std::string cmTargetCompileFeaturesCommand
::Join(const std::vector<std::string> &content)
{
std::string defs;
std::string sep;
for(std::vector<std::string>::const_iterator it = content.begin();
it != content.end(); ++it)
{
defs += sep + *it;
sep = ";";
}
return defs;
return cmJoin(content, ";");
}
//----------------------------------------------------------------------------