diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-07 17:23:27 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-07 17:23:27 (GMT) |
commit | 0314c5f76aec4a17fe7ddf6a7485d001b71935c8 (patch) | |
tree | 0ec3b5e4d1532e0fc62dbef532918ebf44f96156 /Source/cmMessageCommand.cxx | |
parent | 112707a9dc5e56d1a492e13983a01f949d1def95 (diff) | |
download | CMake-0314c5f76aec4a17fe7ddf6a7485d001b71935c8.zip CMake-0314c5f76aec4a17fe7ddf6a7485d001b71935c8.tar.gz CMake-0314c5f76aec4a17fe7ddf6a7485d001b71935c8.tar.bz2 |
Allow multiline messages
Diffstat (limited to 'Source/cmMessageCommand.cxx')
-rw-r--r-- | Source/cmMessageCommand.cxx | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/Source/cmMessageCommand.cxx b/Source/cmMessageCommand.cxx index 157a7ee..d7ae465 100644 --- a/Source/cmMessageCommand.cxx +++ b/Source/cmMessageCommand.cxx @@ -49,25 +49,14 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& args) this->SetError("called with incorrect number of arguments"); return false; } - std::string arg0 = args[0]; - m_Makefile->ExpandVariablesInString(arg0); - if (args.size() >= 2) + std::string message; + std::vector<std::string>::const_iterator i = args.begin(); + for(;i != args.end(); ++i) { - std::string message; - std::vector<std::string>::const_iterator i = args.begin(); - ++i; - for(;i != args.end(); ++i) - { - message += *i; - } - m_Makefile->ExpandVariablesInString(message); - cmSystemTools::Message(arg0.c_str(), message.c_str()); + message += *i; } - else - { - cmSystemTools::Message(arg0.c_str()); - } - + m_Makefile->ExpandVariablesInString(message); + cmSystemTools::Message(message.c_str()); return true; } |