Explorar o código

GHS: Don't attempt to generate for IMPORTED or INTERFACE targets.

Stephen Kelly %!s(int64=10) %!d(string=hai) anos
pai
achega
a4d230af7d
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Source/cmLocalGhsMultiGenerator.cxx

+ 5 - 0
Source/cmLocalGhsMultiGenerator.cxx

@@ -31,6 +31,11 @@ void cmLocalGhsMultiGenerator::Generate()
   for (cmGeneratorTargetsType::iterator l = tgts.begin(); l != tgts.end();
        ++l)
     {
+    if (l->second->Target->GetType() == cmTarget::INTERFACE_LIBRARY
+        || l->second->Target->IsImported())
+      {
+      continue;
+      }
     cmGhsMultiTargetGenerator tg(l->second->Target);
     tg.Generate();
     }