summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-08-11 12:47:05 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-08-11 12:47:05 (GMT)
commitf33ccc270e29f8df34144a56e14c476b1b48f0af (patch)
tree9efe036e6e83a5c1941a94522ccc4416911250c5 /Source/cmGlobalVisualStudioGenerator.cxx
parent489ab9cb3aba79c9f3c1c08d3507b0e19e8ca9c0 (diff)
parent1689c91d8d7667426fdca694d801b6189f68d37e (diff)
downloadCMake-f33ccc270e29f8df34144a56e14c476b1b48f0af.zip
CMake-f33ccc270e29f8df34144a56e14c476b1b48f0af.tar.gz
CMake-f33ccc270e29f8df34144a56e14c476b1b48f0af.tar.bz2
Merge topic 'rm-Makefile-LocalGenerator'
1689c91d cmMakefile: Remove unused method. dd11f72c cmGlobalGenerator: Base exclusion computation on cmGeneratorTarget.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index 2f9d79a..cf1be5c 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -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());
}
}
}