diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 3c9d1ab63..2f87b33ba 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;