cmSystemTools::Error: consolidate parameters into single std::string

This commit is contained in:
Vitaly Stakhovsky
2019-02-20 11:15:00 -05:00
parent b76b83efd3
commit 9dd255548d
28 changed files with 134 additions and 154 deletions

View File

@@ -152,7 +152,7 @@ bool cmExecProgramCommand::RunCommand(const char* command, std::string& output,
if (!cmSystemTools::FileExists(cmd)) {
shortCmd = cmd;
} else if (!cmSystemTools::GetShortPath(cmd.c_str(), shortCmd)) {
cmSystemTools::Error("GetShortPath failed for ", cmd.c_str());
cmSystemTools::Error("GetShortPath failed for " + cmd);
return false;
}
shortCmd += " ";