Explorar o código

cmGeneratorTarget: Port language computation to cmGeneratorTarget.

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

+ 3 - 3
Source/cmGeneratorTarget.cxx

@@ -5276,10 +5276,10 @@ void cmGeneratorTarget::GetLanguages(std::set<std::string>& languages,
           i = externalObjects.begin(); i != externalObjects.end(); ++i)
       {
       std::string objLib = (*i)->GetObjectLibrary();
-      if (cmTarget* tgt = this->Makefile->FindTargetToUse(objLib))
+      if (cmGeneratorTarget* tgt =
+          this->LocalGenerator->FindGeneratorTargetToUse(objLib))
         {
-        objectLibraries.push_back(this->GlobalGenerator
-                                  ->GetGeneratorTarget(tgt));
+        objectLibraries.push_back(tgt);
         }
       }
     }