cmGlobalNinjaGenerator: Simplify usage of API.

This commit is contained in:
Stephen Kelly 2015-08-04 19:19:40 +02:00
parent 87b869c1da
commit 1ab59f688f
1 changed files with 1 additions and 3 deletions

View File

@ -911,9 +911,7 @@ cmGlobalNinjaGenerator
case cmTarget::STATIC_LIBRARY:
case cmTarget::MODULE_LIBRARY:
{
cmGeneratorTarget *gtgt = target->GetMakefile()->GetLocalGenerator()
->GetGlobalGenerator()
->GetGeneratorTarget(target);
cmGeneratorTarget *gtgt = this->GetGeneratorTarget(target);
outputs.push_back(ng->ConvertToNinjaPath(
gtgt->GetFullPath(configName, false, realname)));
break;