summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-04 17:19:40 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-04 17:19:40 (GMT)
commit1ab59f688f647abe1bc0b5e7a187ec0bac988e0f (patch)
tree890560d9d32e7abe8d5ac92483f75840f7d1e78c /Source
parent87b869c1da77f673f6397eff48b09cfb5f44f5f9 (diff)
downloadCMake-1ab59f688f647abe1bc0b5e7a187ec0bac988e0f.zip
CMake-1ab59f688f647abe1bc0b5e7a187ec0bac988e0f.tar.gz
CMake-1ab59f688f647abe1bc0b5e7a187ec0bac988e0f.tar.bz2
cmGlobalNinjaGenerator: Simplify usage of API.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index d24cce8..5bdd35f 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -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;