summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-01-28 21:10:29 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-06-13 18:20:44 (GMT)
commit5bbcf758a1a0c52836d313156788a10a232f1f9f (patch)
tree5868d60a55c86e7861a7b4a300f2641a93674b5f /Source
parent262ce91e8ac3c6fc9b09605e652028db7229b9b8 (diff)
downloadCMake-5bbcf758a1a0c52836d313156788a10a232f1f9f.zip
CMake-5bbcf758a1a0c52836d313156788a10a232f1f9f.tar.gz
CMake-5bbcf758a1a0c52836d313156788a10a232f1f9f.tar.bz2
cmIfCommand: Don't rely on NestedError logic to issue messages
Diffstat (limited to 'Source')
-rw-r--r--Source/cmIfCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 45395d1..cb5ba76 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -185,12 +185,12 @@ bool cmIfCommand::InvokeInitialPass(
conditionEvaluator.IsTrue(expandedArguments, errorString, status);
if (!errorString.empty()) {
- std::string err = cmIfCommandError(expandedArguments);
+ std::string err = "if " + cmIfCommandError(expandedArguments);
err += errorString;
if (status == cmake::FATAL_ERROR) {
- this->SetError(err);
+ this->Makefile->IssueMessage(cmake::FATAL_ERROR, err);
cmSystemTools::SetFatalErrorOccured();
- return false;
+ return true;
} else {
this->Makefile->IssueMessage(status, err);
}