cmGeneratorTarget: Compute the object directory early.
Ensure it is populated before tracing dependencies.
This commit is contained in:
parent
521b930bf4
commit
beaa7e0377
|
@ -1407,6 +1407,7 @@ void cmGlobalGenerator::CreateGeneratorTargets(cmMakefile *mf)
|
|||
{
|
||||
cmTarget* t = &ti->second;
|
||||
cmGeneratorTarget* gt = new cmGeneratorTarget(t);
|
||||
this->ComputeTargetObjectDirectory(gt);
|
||||
this->GeneratorTargets[t] = gt;
|
||||
generatorTargets[t] = gt;
|
||||
}
|
||||
|
@ -1449,7 +1450,6 @@ void cmGlobalGenerator::ComputeGeneratorTargetObjects()
|
|||
continue;
|
||||
}
|
||||
cmGeneratorTarget* gt = ti->second;
|
||||
this->ComputeTargetObjectDirectory(gt);
|
||||
gt->LookupObjectLibraries();
|
||||
this->ComputeTargetObjects(gt);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue