Don't create an empty element at the end of Foo_CONSIDERED_CONFIGS/VERSIONS

Alex
This commit is contained in:
Alex Neundorf 2010-08-29 19:50:51 +02:00
parent cc955a042b
commit b4b8f96391
1 changed files with 5 additions and 2 deletions

View File

@ -935,11 +935,14 @@ bool cmFindPackageCommand::HandlePackageMode()
for(std::vector<ConfigFileInfo>::size_type i=0;
i<this->ConsideredConfigs.size(); i++)
{
consideredConfigFiles += this->ConsideredConfigs[i].filename;
if (i>0)
{
consideredConfigFiles += ";";
consideredVersions += this->ConsideredConfigs[i].version;
consideredVersions += ";";
}
consideredConfigFiles += this->ConsideredConfigs[i].filename;
consideredVersions += this->ConsideredConfigs[i].version;
}
this->Makefile->AddDefinition(consideredConfigsVar.c_str(),
consideredConfigFiles.c_str());