Browse Source

Don't generate subdir convenience rules for IMPORTED targets.

This was missing from commit c34968a9 (Port some of the generator
API to cmGeneratorTarget., 2012-10-10). The generator targets
stored with the cmMakefile include IMPORTED targets, unlike the
accessor for resgular targets. Before this patch, rules would
be generated for Qt5::Core for example, which result in broken
makefiles.
Stephen Kelly 12 years ago
parent
commit
02a545c534
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 5 - 0
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -390,6 +390,11 @@ void cmLocalUnixMakefileGenerator3
        (t->second->GetType() == cmTarget::INTERFACE_LIBRARY) ||
        (t->second->GetType() == cmTarget::UTILITY))
       {
+      if (t->second->Target->IsImported())
+        {
+        continue;
+        }
+
       emitted.insert(t->second->GetName());
 
       // for subdirs add a rule to build this specific target by name.