summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmFileCommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 3c9d1ab..2f87b33 100644
--- a/Source/cmFileCommand.cxx
+++ b/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;