Merge topic 'error-consolidate'

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

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2995
This commit is contained in:
Brad King
2019-02-25 13:00:00 +00:00
committed by Kitware Robot
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 += " ";