mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
Use the cmJoin algorithm where possible.
This commit is contained in:
@@ -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, ";");
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user