Browse Source

ENH: handle single path

Bill Hoffman 19 years ago
parent
commit
6c13d60ec6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Source/cmFileCommand.cxx

+ 4 - 1
Source/cmFileCommand.cxx

@@ -1000,6 +1000,10 @@ bool cmFileCommand::HandleCMakePathCommand(std::vector<std::string>
   for(std::vector<cmsys::String>::iterator j = path.begin();
       j != path.end(); ++j)
     {
+    if(j != path.begin())
+      {
+      value += ";";
+      }
     if(!nativePath)
       {
       cmSystemTools::ConvertToUnixSlashes(*j);
@@ -1016,7 +1020,6 @@ bool cmFileCommand::HandleCMakePathCommand(std::vector<std::string>
         }
       }
     value += *j;
-    value += ";";
     }
   this->Makefile->AddDefinition(var, value.c_str());
   return true;