QtAutogen: Use a target type between loops.
This commit is contained in:
parent
5fb730174d
commit
1e757c318b
|
@ -1413,8 +1413,8 @@ cmGlobalGenerator::CreateQtAutoGeneratorsTargets()
|
||||||
{
|
{
|
||||||
cmTargets& targets =
|
cmTargets& targets =
|
||||||
this->LocalGenerators[i]->GetMakefile()->GetTargets();
|
this->LocalGenerators[i]->GetMakefile()->GetTargets();
|
||||||
std::vector<std::string> targetNames;
|
std::vector<cmTarget*> filteredTargets;
|
||||||
targetNames.reserve(targets.size());
|
filteredTargets.reserve(targets.size());
|
||||||
for(cmTargets::iterator ti = targets.begin();
|
for(cmTargets::iterator ti = targets.begin();
|
||||||
ti != targets.end(); ++ti)
|
ti != targets.end(); ++ti)
|
||||||
{
|
{
|
||||||
|
@ -1450,13 +1450,12 @@ cmGlobalGenerator::CreateQtAutoGeneratorsTargets()
|
||||||
}
|
}
|
||||||
|
|
||||||
cmQtAutoGeneratorInitializer::InitializeAutogenSources(&ti->second);
|
cmQtAutoGeneratorInitializer::InitializeAutogenSources(&ti->second);
|
||||||
targetNames.push_back(ti->second.GetName());
|
filteredTargets.push_back(&ti->second);
|
||||||
}
|
}
|
||||||
for(std::vector<std::string>::iterator ti = targetNames.begin();
|
for(std::vector<cmTarget*>::iterator ti = filteredTargets.begin();
|
||||||
ti != targetNames.end(); ++ti)
|
ti != filteredTargets.end(); ++ti)
|
||||||
{
|
{
|
||||||
cmTarget* target = this->LocalGenerators[i]
|
cmTarget* target = *ti;
|
||||||
->GetMakefile()->FindTarget(*ti, true);
|
|
||||||
cmQtAutoGeneratorInitializer::InitializeAutogenTarget(
|
cmQtAutoGeneratorInitializer::InitializeAutogenTarget(
|
||||||
this->LocalGenerators[i], target);
|
this->LocalGenerators[i], target);
|
||||||
autogenTargets.push_back(target);
|
autogenTargets.push_back(target);
|
||||||
|
|
Loading…
Reference in New Issue