1
0
Bill Hoffman 19 жил өмнө
parent
commit
6c13d60ec6

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