Explorar o código

cmComputeTargetDepends: Use simpler global generator access.

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

+ 1 - 3
Source/cmComputeTargetDepends.cxx

@@ -216,9 +216,7 @@ void cmComputeTargetDepends::CollectTargetDepends(int depender_index)
   // deal with config-specific dependencies.
   {
   std::set<std::string> emitted;
-  cmGeneratorTarget* gt = depender->GetMakefile()->GetLocalGenerator()
-                                  ->GetGlobalGenerator()
-                                  ->GetGeneratorTarget(depender);
+  cmGeneratorTarget* gt = this->GlobalGenerator->GetGeneratorTarget(depender);
 
   std::vector<std::string> configs;
   depender->GetMakefile()->GetConfigurations(configs);