cmIfCommand: Don't rely on NestedError logic to issue messages
This commit is contained in:
parent
262ce91e8a
commit
5bbcf758a1
|
@ -185,12 +185,12 @@ bool cmIfCommand::InvokeInitialPass(
|
||||||
conditionEvaluator.IsTrue(expandedArguments, errorString, status);
|
conditionEvaluator.IsTrue(expandedArguments, errorString, status);
|
||||||
|
|
||||||
if (!errorString.empty()) {
|
if (!errorString.empty()) {
|
||||||
std::string err = cmIfCommandError(expandedArguments);
|
std::string err = "if " + cmIfCommandError(expandedArguments);
|
||||||
err += errorString;
|
err += errorString;
|
||||||
if (status == cmake::FATAL_ERROR) {
|
if (status == cmake::FATAL_ERROR) {
|
||||||
this->SetError(err);
|
this->Makefile->IssueMessage(cmake::FATAL_ERROR, err);
|
||||||
cmSystemTools::SetFatalErrorOccured();
|
cmSystemTools::SetFatalErrorOccured();
|
||||||
return false;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
this->Makefile->IssueMessage(status, err);
|
this->Makefile->IssueMessage(status, err);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue