diff options
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 48122a8..8ee8fc7 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -935,10 +935,13 @@ bool cmFindPackageCommand::HandlePackageMode() for(std::vector<ConfigFileInfo>::size_type i=0; i<this->ConsideredConfigs.size(); i++) { + if (i>0) + { + consideredConfigFiles += ";"; + consideredVersions += ";"; + } consideredConfigFiles += this->ConsideredConfigs[i].filename; - consideredConfigFiles += ";"; consideredVersions += this->ConsideredConfigs[i].version; - consideredVersions += ";"; } this->Makefile->AddDefinition(consideredConfigsVar.c_str(), |