Selaa lähdekoodia

Merge topic 'use-generator-target'

02a545c Don't generate subdir convenience rules for IMPORTED targets.
Brad King 12 vuotta sitten
vanhempi
sitoutus
fab69a3db9
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 5 - 0
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -391,6 +391,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.