|
|
@@ -1222,8 +1222,6 @@ void cmGlobalGenerator::Generate()
|
|
|
this->LocalGenerators[i]->GenerateTargetManifest();
|
|
|
}
|
|
|
|
|
|
- this->ComputeGeneratorTargetObjects();
|
|
|
-
|
|
|
this->ProcessEvaluationFiles();
|
|
|
|
|
|
// Compute the inter-target dependencies.
|
|
|
@@ -1440,27 +1438,6 @@ void cmGlobalGenerator::CreateGeneratorTargets()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-//----------------------------------------------------------------------------
|
|
|
-void cmGlobalGenerator::ComputeGeneratorTargetObjects()
|
|
|
-{
|
|
|
- // Construct per-target generator information.
|
|
|
- for(unsigned int i=0; i < this->LocalGenerators.size(); ++i)
|
|
|
- {
|
|
|
- cmMakefile *mf = this->LocalGenerators[i]->GetMakefile();
|
|
|
- cmGeneratorTargetsType targets = mf->GetGeneratorTargets();
|
|
|
- for(cmGeneratorTargetsType::iterator ti = targets.begin();
|
|
|
- ti != targets.end(); ++ti)
|
|
|
- {
|
|
|
- if (ti->second->Target->IsImported()
|
|
|
- || ti->second->Target->GetType() == cmTarget::INTERFACE_LIBRARY)
|
|
|
- {
|
|
|
- continue;
|
|
|
- }
|
|
|
- cmGeneratorTarget* gt = ti->second;
|
|
|
- this->ComputeTargetObjects(gt);
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
void cmGlobalGenerator::ClearGeneratorMembers()
|
|
|
@@ -1521,29 +1498,6 @@ cmGlobalGenerator::GetGeneratorTarget(cmTarget const* t) const
|
|
|
return ti->second;
|
|
|
}
|
|
|
|
|
|
-//----------------------------------------------------------------------------
|
|
|
-void cmGlobalGenerator::ComputeTargetObjects(cmGeneratorTarget* gt) const
|
|
|
-{
|
|
|
- std::vector<cmSourceFile const*> objectSources;
|
|
|
- gt->GetObjectSources(objectSources);
|
|
|
-
|
|
|
- std::map<cmSourceFile const*, std::string> mapping;
|
|
|
- for(std::vector<cmSourceFile const*>::const_iterator it
|
|
|
- = objectSources.begin(); it != objectSources.end(); ++it)
|
|
|
- {
|
|
|
- mapping[*it];
|
|
|
- }
|
|
|
-
|
|
|
- gt->LocalGenerator->ComputeObjectFilenames(mapping, gt);
|
|
|
-
|
|
|
- for(std::map<cmSourceFile const*, std::string>::const_iterator it
|
|
|
- = mapping.begin(); it != mapping.end(); ++it)
|
|
|
- {
|
|
|
- assert(!it->second.empty());
|
|
|
- gt->AddObject(it->first, it->second);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
//----------------------------------------------------------------------------
|
|
|
void cmGlobalGenerator::ComputeTargetObjectDirectory(cmGeneratorTarget*) const
|
|
|
{
|