瀏覽代碼

cmGlobalGenerator: Port configure-time code to cmMakefile.

Stephen Kelly 10 年之前
父節點
當前提交
204aecdf82
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Source/cmGlobalGenerator.cxx

+ 3 - 3
Source/cmGlobalGenerator.cxx

@@ -2821,9 +2821,9 @@ cmGlobalGenerator::AddRuleHash(const std::vector<std::string>& outputs,
   }
   }
 
 
   // Shorten the output name (in expected use case).
   // Shorten the output name (in expected use case).
-  cmLocalGenerator* lg = this->GetLocalGenerators()[0];
-  std::string fname = lg->Convert(outputs[0],
-                                  cmLocalGenerator::HOME_OUTPUT);
+  cmOutputConverter converter(this->GetMakefiles()[0]->GetStateSnapshot());
+  std::string fname = converter.Convert(
+        outputs[0], cmLocalGenerator::HOME_OUTPUT);
 
 
   // Associate the hash with this output.
   // Associate the hash with this output.
   this->RuleHashes[fname] = hash;
   this->RuleHashes[fname] = hash;