summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-18 11:38:10 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-09-19 13:32:25 (GMT)
commit52854583429e4fb8f180d8276a07d8f8226d6427 (patch)
treee2afaa1ed5a0094fbc706d3da04d99d446e6a874 /Source/cmMakefile.cxx
parentc31f3d99f8adc95c355f8607bdfccf01cc37c51d (diff)
downloadCMake-52854583429e4fb8f180d8276a07d8f8226d6427.zip
CMake-52854583429e4fb8f180d8276a07d8f8226d6427.tar.gz
CMake-52854583429e4fb8f180d8276a07d8f8226d6427.tar.bz2
Add convenience for getting a cmGeneratorTarget to use.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 9a9c1c8..f067da4 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -3984,6 +3984,12 @@ cmTarget* cmMakefile::FindTargetToUse(const char* name)
return this->LocalGenerator->GetGlobalGenerator()->FindTarget(0, name);
}
+cmGeneratorTarget* cmMakefile::FindGeneratorTargetToUse(const char* name)
+{
+ cmTarget *t = this->FindTargetToUse(name);
+ return this->LocalGenerator->GetGlobalGenerator()->GetGeneratorTarget(t);
+}
+
//----------------------------------------------------------------------------
bool cmMakefile::EnforceUniqueName(std::string const& name, std::string& msg,
bool isCustom)