diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-10 17:47:19 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-10 17:47:19 (GMT) |
commit | 6c13d60ec68bb3f603a059790005166a65fcb268 (patch) | |
tree | e7af5dd1e2d50a0f657459f7a38932a1f53652b7 | |
parent | 51f91db648e7b99d43dd0b5c101656bbd6081043 (diff) | |
download | CMake-6c13d60ec68bb3f603a059790005166a65fcb268.zip CMake-6c13d60ec68bb3f603a059790005166a65fcb268.tar.gz CMake-6c13d60ec68bb3f603a059790005166a65fcb268.tar.bz2 |
ENH: handle single path
-rw-r--r-- | Source/cmFileCommand.cxx | 5 |
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; |