diff options
Diffstat (limited to 'Source/cmMessageCommand.cxx')
-rw-r--r-- | Source/cmMessageCommand.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/cmMessageCommand.cxx b/Source/cmMessageCommand.cxx index 7e66e05..90f023b 100644 --- a/Source/cmMessageCommand.cxx +++ b/Source/cmMessageCommand.cxx @@ -30,11 +30,18 @@ bool cmMessageCommand cmake::MessageType type = cmake::MESSAGE; bool status = false; - if (*i == "SEND_ERROR" || *i == "FATAL_ERROR") + bool fatal = false; + if (*i == "SEND_ERROR") { type = cmake::FATAL_ERROR; ++i; } + else if (*i == "FATAL_ERROR") + { + fatal = true; + type = cmake::FATAL_ERROR; + ++i; + } else if (*i == "WARNING") { type = cmake::WARNING; @@ -71,6 +78,10 @@ bool cmMessageCommand cmSystemTools::Message(message.c_str()); } } + if(fatal) + { + cmSystemTools::SetFatalErrorOccured(); + } return true; } |