Don't create an empty element at the end of Foo_CONSIDERED_CONFIGS/VERSIONS
Alex
This commit is contained in:
parent
cc955a042b
commit
b4b8f96391
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue