summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallTargetGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-18 21:49:12 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-24 07:19:52 (GMT)
commita6b7eb5bc8c304dab2102689eb09ec85c1e7f6be (patch)
treec54dcd116704299bff1004d38e56469fba036b72 /Source/cmInstallTargetGenerator.cxx
parentc2c239e607549d6513d95c3e919b4f509733bc87 (diff)
downloadCMake-a6b7eb5bc8c304dab2102689eb09ec85c1e7f6be.zip
CMake-a6b7eb5bc8c304dab2102689eb09ec85c1e7f6be.tar.gz
CMake-a6b7eb5bc8c304dab2102689eb09ec85c1e7f6be.tar.bz2
cmInstallTargetGenerator: Get a cmGeneratorTarget directly.
Extend the cmGeneratorTarget API to make this possible.
Diffstat (limited to 'Source/cmInstallTargetGenerator.cxx')
-rw-r--r--Source/cmInstallTargetGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx
index a97cc5f..7a10356 100644
--- a/Source/cmInstallTargetGenerator.cxx
+++ b/Source/cmInstallTargetGenerator.cxx
@@ -440,8 +440,7 @@ cmInstallTargetGenerator::GetInstallFilename(cmGeneratorTarget const* target,
void cmInstallTargetGenerator::Compute(cmLocalGenerator* lg)
{
- this->Target = lg->GetGlobalGenerator()->GetGeneratorTarget(
- lg->GetMakefile()->FindTarget(this->TargetName));
+ this->Target = lg->FindGeneratorTarget(this->TargetName);
}
//----------------------------------------------------------------------------