mirror of
https://github.com/reactos/CMake.git
synced 2024-12-04 01:22:28 +00:00
QtAutogen: Move Source initialization to prior loop.
Ensure that all targets have their _automoc.cpp before attempting to initialize the autogen target. The initialization evaluates generator expressions for target sources, and must include the _automoc.cpp of object library dependents in order for TARGET_OBJECTS to include the object file for the corresponding _automoc.cpp file.
This commit is contained in:
parent
c3c20d3ce3
commit
64b78c147f
@ -1448,6 +1448,7 @@ void cmGlobalGenerator::CreateQtAutoGeneratorsTargets(AutogensType &autogens)
|
||||
continue;
|
||||
}
|
||||
|
||||
cmQtAutoGenerators::InitializeAutogenSources(&ti->second);
|
||||
targetNames.push_back(ti->second.GetName());
|
||||
}
|
||||
for(std::vector<std::string>::iterator ti = targetNames.begin();
|
||||
@ -1455,8 +1456,6 @@ void cmGlobalGenerator::CreateQtAutoGeneratorsTargets(AutogensType &autogens)
|
||||
{
|
||||
cmTarget& target = *this->LocalGenerators[i]
|
||||
->GetMakefile()->FindTarget(*ti, true);
|
||||
|
||||
cmQtAutoGenerators::InitializeAutogenSources(&target);
|
||||
cmQtAutoGenerators::InitializeAutogenTarget(
|
||||
this->LocalGenerators[i], &target);
|
||||
cmQtAutoGenerators autogen;
|
||||
|
Loading…
Reference in New Issue
Block a user