From f18bb42bfcf336c27ed5cad12f35626a0e84f84b Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 4 Jun 2001 18:24:28 -0400 Subject: [PATCH] ENH: print all arguments --- Source/cmMessageCommand.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/cmMessageCommand.cxx b/Source/cmMessageCommand.cxx index 98914f214..b0b7ad7ac 100644 --- a/Source/cmMessageCommand.cxx +++ b/Source/cmMessageCommand.cxx @@ -52,7 +52,14 @@ bool cmMessageCommand::Invoke(std::vector& args) if (args.size() >= 2) { - cmSystemTools::Message(args[0].c_str(), args[1].c_str()); + std::string message; + std::vector::iterator i = args.begin(); + ++i; + for(;i != args.end(); ++i) + { + message += *i; + } + cmSystemTools::Message(args[0].c_str(), message.c_str()); } else {