diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-11-13 20:59:40 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-11-13 20:59:40 (GMT) |
commit | 20b7e6b22204b034d204252c0475f292e830ff61 (patch) | |
tree | c4e78c77f55addd507270a17ccd0b9255f01ec0f /Source/cmMessageCommand.cxx | |
parent | 19b144bdbf1b582e4ad832247bdeee7017d26263 (diff) | |
download | CMake-20b7e6b22204b034d204252c0475f292e830ff61.zip CMake-20b7e6b22204b034d204252c0475f292e830ff61.tar.gz CMake-20b7e6b22204b034d204252c0475f292e830ff61.tar.bz2 |
ENH: space fixes and add a status option to message command
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; |