cmSet: Replace loop with cmJoin.

This commit is contained in:
Stephen Kelly 2015-02-10 23:26:58 +01:00
parent 0ea719326e
commit 559dc15589
1 changed files with 1 additions and 11 deletions

View File

@ -108,17 +108,7 @@ bool cmSetCommand
}
// collect any values into a single semi-colon separated value list
if(static_cast<unsigned short>(args.size()) >
static_cast<unsigned short>(1 + ignoreLastArgs))
{
value = args[1];
size_t endPos = args.size() - ignoreLastArgs;
for(size_t i = 2; i < endPos; ++i)
{
value += ";";
value += args[i];
}
}
value = cmJoin(cmRange(args).advance(1).retreat(ignoreLastArgs), ";");
if (parentScope)
{