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,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(),