diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-05-22 13:16:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-22 14:51:06 (GMT) |
commit | e884b1b69365e9dc15fff572a6ff2237c1bb7644 (patch) | |
tree | bad78de74a06120f8bcaa6e5966f38f1a5e6e180 /Source/cmGlobalGenerator.cxx | |
parent | 01b6a2c4ee8930e60459b46b4d751148ce28d5a9 (diff) | |
download | CMake-e884b1b69365e9dc15fff572a6ff2237c1bb7644.zip CMake-e884b1b69365e9dc15fff572a6ff2237c1bb7644.tar.gz CMake-e884b1b69365e9dc15fff572a6ff2237c1bb7644.tar.bz2 |
cmSystemTools::Error(): remove const char* overload
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index b08dd1c..3495f2a 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1798,10 +1798,10 @@ int cmGlobalGenerator::Build( output += "\n"; if (workdir.Failed()) { cmSystemTools::SetRunCommandHideConsole(hideconsole); - cmSystemTools::Error("Failed to change directory: ", - std::strerror(workdir.GetLastResult())); - output += "Failed to change directory: "; - output += std::strerror(workdir.GetLastResult()); + std::string err = "Failed to change directory: "; + err += std::strerror(workdir.GetLastResult()); + cmSystemTools::Error(err); + output += err; output += "\n"; return 1; } |