STYLE: some more tuning for the comment text
Alex
This commit is contained in:
parent
63e2c3bbf2
commit
a0533be267
@ -241,8 +241,7 @@ void cmTryRunCommand::DoNotRunExecutable(const std::string& runArgs,
|
|||||||
std::string detailsString = "For details see ";
|
std::string detailsString = "For details see ";
|
||||||
detailsString += resultFileName;
|
detailsString += resultFileName;
|
||||||
|
|
||||||
std::string internalRunOutputName = this->RunResultVariable+"__"
|
std::string internalRunOutputName=this->RunResultVariable+"__TRYRUN_OUTPUT";
|
||||||
+this->CompileResultVariable+"__TRYRUN_OUTPUT";
|
|
||||||
bool error = false;
|
bool error = false;
|
||||||
|
|
||||||
if (this->Makefile->GetDefinition(this->RunResultVariable.c_str()) == 0)
|
if (this->Makefile->GetDefinition(this->RunResultVariable.c_str()) == 0)
|
||||||
@ -315,25 +314,25 @@ void cmTryRunCommand::DoNotRunExecutable(const std::string& runArgs,
|
|||||||
|
|
||||||
std::string comment ="\n";
|
std::string comment ="\n";
|
||||||
comment += this->RunResultVariable;
|
comment += this->RunResultVariable;
|
||||||
comment += "\nindicates whether the executable would have been able to "
|
comment += "\n indicates whether the executable would have been able "
|
||||||
"run if it was\n"
|
"to run if it was\n"
|
||||||
"executed on its target platform. If so, set ";
|
" executed on its target platform. If so, set ";
|
||||||
comment += this->RunResultVariable;
|
comment += this->RunResultVariable;
|
||||||
comment += " to\n"
|
comment += " to\n"
|
||||||
"the exit code (in many cases 0 for success), otherwise "
|
" the exit code (in many cases 0 for success), otherwise "
|
||||||
"enter \"FAILED_TO_RUN\".\n";
|
"enter \"FAILED_TO_RUN\".\n";
|
||||||
if (out!=0)
|
if (out!=0)
|
||||||
{
|
{
|
||||||
comment += internalRunOutputName;
|
comment += internalRunOutputName;
|
||||||
comment += "\ncontains the text, which the executable "
|
comment += "\n contains the text the executable "
|
||||||
"would have printed on stdout and stderr.\n"
|
"would have printed on stdout and stderr.\n"
|
||||||
"If the executable would not have been able to run, set ";
|
" If the executable would not have been able to run, set ";
|
||||||
comment += internalRunOutputName;
|
comment += internalRunOutputName;
|
||||||
comment += " empty.\n"
|
comment += " empty.\n"
|
||||||
"Otherwise check if the output is evaluated by the "
|
" Otherwise check if the output is evaluated by the "
|
||||||
"calling CMake code. If so,\n"
|
"calling CMake code. If so,\n"
|
||||||
"check what the source file would have printed when called "
|
" check what the source file would have printed when "
|
||||||
"with the given arguments.\n";
|
"called with the given arguments.\n";
|
||||||
}
|
}
|
||||||
comment += "The ";
|
comment += "The ";
|
||||||
comment += this->CompileResultVariable;
|
comment += this->CompileResultVariable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user