diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-01-21 17:50:48 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-01-21 17:50:48 (GMT) |
commit | 2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7 (patch) | |
tree | 2e7ba2c7d45537691296edc194f605f623bcc3a7 /Source/cmMessageCommand.cxx | |
parent | 110bc04bd0125ef746ad8ea239c632831f7c5075 (diff) | |
download | CMake-2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7.zip CMake-2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7.tar.gz CMake-2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7.tar.bz2 |
add a fatal error, and make sure c and c++ compilers work before using them
Diffstat (limited to 'Source/cmMessageCommand.cxx')
-rw-r--r-- | Source/cmMessageCommand.cxx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Source/cmMessageCommand.cxx b/Source/cmMessageCommand.cxx index c6e8e16..e1722be 100644 --- a/Source/cmMessageCommand.cxx +++ b/Source/cmMessageCommand.cxx @@ -28,6 +28,7 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& args) std::vector<std::string>::const_iterator i = args.begin(); bool send_error = false; + bool fatal_error = false; bool status = false; if (*i == "SEND_ERROR") { @@ -36,11 +37,19 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& args) } else { - if (*i == "STATUS") + if (*i == "STATUS") + { + status = true; + ++i; + } + else + { + if (*i == "FATAL_ERROR") { - status = true; - ++i; + fatal_error = true; + ++i; } + } } for(;i != args.end(); ++i) @@ -63,7 +72,10 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& args) cmSystemTools::Message(message.c_str()); } } - + if(fatal_error) + { + cmSystemTools::SetFatalErrorOccured(); + } return true; } |