QtAutogen: Move condition to prior loop.
This commit is contained in:
parent
e791c85419
commit
b7491b1cda
|
@ -1421,6 +1421,14 @@ void cmGlobalGenerator::CreateQtAutoGeneratorsTargets(AutogensType &autogens)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if(ti->second.GetType() != cmTarget::EXECUTABLE &&
|
||||||
|
ti->second.GetType() != cmTarget::STATIC_LIBRARY &&
|
||||||
|
ti->second.GetType() != cmTarget::SHARED_LIBRARY &&
|
||||||
|
ti->second.GetType() != cmTarget::MODULE_LIBRARY &&
|
||||||
|
ti->second.GetType() != cmTarget::OBJECT_LIBRARY)
|
||||||
|
{
|
||||||
|
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();
|
||||||
|
@ -1428,12 +1436,6 @@ 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.GetType() == cmTarget::EXECUTABLE ||
|
|
||||||
target.GetType() == cmTarget::STATIC_LIBRARY ||
|
|
||||||
target.GetType() == cmTarget::SHARED_LIBRARY ||
|
|
||||||
target.GetType() == cmTarget::MODULE_LIBRARY ||
|
|
||||||
target.GetType() == cmTarget::OBJECT_LIBRARY)
|
|
||||||
{
|
|
||||||
if((target.GetPropertyAsBool("AUTOMOC")
|
if((target.GetPropertyAsBool("AUTOMOC")
|
||||||
|| target.GetPropertyAsBool("AUTOUIC")
|
|| target.GetPropertyAsBool("AUTOUIC")
|
||||||
|| target.GetPropertyAsBool("AUTORCC"))
|
|| target.GetPropertyAsBool("AUTORCC"))
|
||||||
|
@ -1448,7 +1450,6 @@ void cmGlobalGenerator::CreateQtAutoGeneratorsTargets(AutogensType &autogens)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
(void)autogens;
|
(void)autogens;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue