mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
cmGlobalGenerator: Base exclusion computation on cmGeneratorTarget.
This commit is contained in:
@@ -111,17 +111,19 @@ bool cmGlobalVisualStudioGenerator::Compute()
|
||||
for(std::vector<cmLocalGenerator*>::iterator i = gen.begin();
|
||||
i != gen.end(); ++i)
|
||||
{
|
||||
cmTargets& targets = (*i)->GetMakefile()->GetTargets();
|
||||
for(cmTargets::iterator t = targets.begin();
|
||||
cmGeneratorTargetsType targets =
|
||||
(*i)->GetMakefile()->GetGeneratorTargets();
|
||||
for(cmGeneratorTargetsType::iterator t = targets.begin();
|
||||
t != targets.end(); ++t)
|
||||
{
|
||||
if (t->second.GetType() == cmTarget::GLOBAL_TARGET)
|
||||
if (t->second->GetType() == cmTarget::GLOBAL_TARGET
|
||||
|| t->first->IsImported())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if(!this->IsExcluded(gen[0], t->second))
|
||||
{
|
||||
allBuild->AddUtility(t->second.GetName());
|
||||
allBuild->AddUtility(t->second->GetName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user