ENH: fix sort to work with CMP0007

This commit is contained in:
Bill Hoffman 2008-05-07 14:57:29 -04:00
parent 66b01e254f
commit 2a53075ed8
1 changed files with 6 additions and 0 deletions

View File

@ -544,6 +544,12 @@ bool cmListCommand
std::vector<std::string>::iterator it;
for ( it = varArgsExpanded.begin(); it != varArgsExpanded.end(); ++ it )
{
if(value.size() == 0 &&
this->Makefile->GetPolicyStatus(cmPolicies::CMP0007) ==
cmPolicies::NEW)
{
value += ";";
}
if (value.size())
{
value += ";";