mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
Use the cmJoin algorithm where possible.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user