diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-23 15:12:17 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-23 15:19:30 (GMT) |
commit | 99337d345ba9d3379135c90854be23403fa8e274 (patch) | |
tree | c7ccda407d2c3627561574f5ea3c6fe5353e31e5 /Source/cmTryRunCommand.cxx | |
parent | a7f5cd45e135dd51d67176fc40e2d769ac5f7db8 (diff) | |
download | CMake-99337d345ba9d3379135c90854be23403fa8e274.zip CMake-99337d345ba9d3379135c90854be23403fa8e274.tar.gz CMake-99337d345ba9d3379135c90854be23403fa8e274.tar.bz2 |
cmSystemTools::Error(): new overload accepting std::string
Diffstat (limited to 'Source/cmTryRunCommand.cxx')
-rw-r--r-- | Source/cmTryRunCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx index 10a6d9a..0a657f7 100644 --- a/Source/cmTryRunCommand.cxx +++ b/Source/cmTryRunCommand.cxx @@ -121,7 +121,7 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv, // now try running the command if it compiled if (!res) { if (this->OutputFile.empty()) { - cmSystemTools::Error(this->FindErrorMessage.c_str()); + cmSystemTools::Error(this->FindErrorMessage); } else { // "run" it and capture the output std::string runOutputContents; @@ -354,7 +354,7 @@ void cmTryRunCommand::DoNotRunExecutable(const std::string& runArgs, errorMessage += " " + internalRunOutputName + " (advanced)\n"; } errorMessage += detailsString; - cmSystemTools::Error(errorMessage.c_str()); + cmSystemTools::Error(errorMessage); return; } |