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
+4 -10
View File
@@ -828,18 +828,12 @@ bool cmSystemTools::RunSingleCommand(
std::string
cmSystemTools::PrintSingleCommand(std::vector<std::string> const& command)
{
std::string commandStr;
const char* sep = "";
for(std::vector<std::string>::const_iterator i = command.begin();
i != command.end(); ++i)
if (command.empty())
{
commandStr += sep;
commandStr += "\"";
commandStr += *i;
commandStr += "\"";
sep = " ";
return std::string();
}
return commandStr;
return "\"" + cmJoin(command, "\" \"") + "\"";
}
bool cmSystemTools::DoesFileExistWithExtensions(