diff options
Diffstat (limited to 'Source/cmMessageCommand.cxx')
-rw-r--r-- | Source/cmMessageCommand.cxx | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/cmMessageCommand.cxx b/Source/cmMessageCommand.cxx index 0fa2e83..45c6dc9 100644 --- a/Source/cmMessageCommand.cxx +++ b/Source/cmMessageCommand.cxx @@ -30,11 +30,20 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& argsIn) std::vector<std::string>::const_iterator i = args.begin(); bool send_error = false; + bool status = false; if (*i == "SEND_ERROR") { send_error = true; ++i; } + else + { + if (*i == "STATUS") + { + status = true; + ++i; + } + } for(;i != args.end(); ++i) { @@ -47,7 +56,14 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& argsIn) } else { - cmSystemTools::Message(message.c_str()); + if (status) + { + m_Makefile->DisplayStatus(message.c_str(), -1); + } + else + { + cmSystemTools::Message(message.c_str()); + } } return true; |