summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-18 14:33:48 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-20 21:58:48 (GMT)
commit400e3d19fcebf7d6e9551d585d60754bd937c28c (patch)
tree85f6536bd0a32ac616face977c8244b5a47eb4d9 /Source/cmLocalUnixMakefileGenerator3.cxx
parent726e461b3885aca4144ec79d08bf62c7ebade96d (diff)
downloadCMake-400e3d19fcebf7d6e9551d585d60754bd937c28c.zip
CMake-400e3d19fcebf7d6e9551d585d60754bd937c28c.tar.gz
CMake-400e3d19fcebf7d6e9551d585d60754bd937c28c.tar.bz2
cmLocalGenerator: Don't store imported generator targets
No consumers need them. This makes GetGeneratorTargets more comparable to cmMakefile::GetTargets, which does not include imported targets.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index add0aa9..5485da4 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -119,8 +119,7 @@ void cmLocalUnixMakefileGenerator3::Generate()
for(cmGeneratorTargetsType::iterator t = targets.begin();
t != targets.end(); ++t)
{
- if (t->second->GetType() == cmState::INTERFACE_LIBRARY
- || t->second->Target->IsImported())
+ if (t->second->GetType() == cmState::INTERFACE_LIBRARY)
{
continue;
}
@@ -430,11 +429,6 @@ void cmLocalUnixMakefileGenerator3
(t->second->GetType() == cmState::OBJECT_LIBRARY) ||
(t->second->GetType() == cmState::UTILITY))
{
- if (t->second->Target->IsImported())
- {
- continue;
- }
-
emitted.insert(t->second->GetName());
// for subdirs add a rule to build this specific target by name.