Browse Source

ENH: fix sort to work with CMP0007

Bill Hoffman 17 years ago
parent
commit
2a53075ed8
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Source/cmListCommand.cxx

+ 6 - 0
Source/cmListCommand.cxx

@@ -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 += ";";