summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.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/cmLocalGenerator.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/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 6959e1d..3658473 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -453,6 +453,13 @@ void cmLocalGenerator::AddGeneratorTarget(cmGeneratorTarget* gt)
this->GeneratorTargets.push_back(gt);
}
+cmGeneratorTarget* cmLocalGenerator::FindGeneratorTarget(
+ const std::string& name) const
+{
+ return this->GetGlobalGenerator()->GetGeneratorTarget(
+ this->Makefile->FindTarget(name));
+}
+
//----------------------------------------------------------------------------
void cmLocalGenerator::ComputeTargetManifest()
{