cmMacroCommand: Replace a loop with cmJoin.

This commit is contained in:
Stephen Kelly 2015-02-11 00:29:20 +01:00
parent ac26d4b343
commit 9fe8f49353

View File

@ -262,11 +262,11 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
if (!this->Depth) if (!this->Depth)
{ {
std::string name = this->Args[0]; std::string name = this->Args[0];
std::vector<std::string>::size_type cc;
name += "("; name += "(";
for ( cc = 0; cc < this->Args.size(); cc ++ ) if (!this->Args.empty())
{ {
name += " " + this->Args[cc]; name += " ";
name += cmJoin(this->Args, " ");
} }
name += " )"; name += " )";
mf.AddMacro(this->Args[0].c_str(), name.c_str()); mf.AddMacro(this->Args[0].c_str(), name.c_str());