QtAutogen: Move condition to prior loop.
This commit is contained in:
parent
b7491b1cda
commit
9470b056fc
@ -1429,6 +1429,13 @@ void cmGlobalGenerator::CreateQtAutoGeneratorsTargets(AutogensType &autogens)
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if((!ti->second.GetPropertyAsBool("AUTOMOC")
|
||||||
|
&& !ti->second.GetPropertyAsBool("AUTOUIC")
|
||||||
|
&& !ti->second.GetPropertyAsBool("AUTORCC"))
|
||||||
|
|| ti->second.IsImported())
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
targetNames.push_back(ti->second.GetName());
|
targetNames.push_back(ti->second.GetName());
|
||||||
}
|
}
|
||||||
for(std::vector<std::string>::iterator ti = targetNames.begin();
|
for(std::vector<std::string>::iterator ti = targetNames.begin();
|
||||||
@ -1436,17 +1443,12 @@ void cmGlobalGenerator::CreateQtAutoGeneratorsTargets(AutogensType &autogens)
|
|||||||
{
|
{
|
||||||
cmTarget& target = *this->LocalGenerators[i]
|
cmTarget& target = *this->LocalGenerators[i]
|
||||||
->GetMakefile()->FindTarget(*ti, true);
|
->GetMakefile()->FindTarget(*ti, true);
|
||||||
if((target.GetPropertyAsBool("AUTOMOC")
|
|
||||||
|| target.GetPropertyAsBool("AUTOUIC")
|
if(cmQtAutoGenerators::InitializeAutogenTarget(
|
||||||
|| target.GetPropertyAsBool("AUTORCC"))
|
this->LocalGenerators[i], &target))
|
||||||
&& !target.IsImported())
|
|
||||||
{
|
{
|
||||||
if(cmQtAutoGenerators::InitializeAutogenTarget(
|
cmQtAutoGenerators autogen;
|
||||||
this->LocalGenerators[i], &target))
|
autogens.push_back(std::make_pair(autogen, &target));
|
||||||
{
|
|
||||||
cmQtAutoGenerators autogen;
|
|
||||||
autogens.push_back(std::make_pair(autogen, &target));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user