summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-10 17:47:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-10 17:47:19 (GMT)
commit6c13d60ec68bb3f603a059790005166a65fcb268 (patch)
treee7af5dd1e2d50a0f657459f7a38932a1f53652b7 /Source
parent51f91db648e7b99d43dd0b5c101656bbd6081043 (diff)
downloadCMake-6c13d60ec68bb3f603a059790005166a65fcb268.zip
CMake-6c13d60ec68bb3f603a059790005166a65fcb268.tar.gz
CMake-6c13d60ec68bb3f603a059790005166a65fcb268.tar.bz2
ENH: handle single path
Diffstat (limited to 'Source')
-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;