From 6c13d60ec68bb3f603a059790005166a65fcb268 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 10 Apr 2006 13:47:19 -0400 Subject: ENH: handle single path --- Source/cmFileCommand.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 for(std::vector::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 } } value += *j; - value += ";"; } this->Makefile->AddDefinition(var, value.c_str()); return true; -- cgit v0.12