From b2b41b83ff594555f3b80c6c2fd12e10e1e97458 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 6 Jun 2015 12:59:25 +0200 Subject: [PATCH] cmGeneratorTarget: Add accessor for cmLocalGenerator. --- Source/cmGeneratorTarget.cxx | 5 +++++ Source/cmGeneratorTarget.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 2f68ab031..482eefddc 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -228,6 +228,11 @@ cmGeneratorTarget::cmGeneratorTarget(cmTarget* t): Target(t), this->GlobalGenerator = this->Makefile->GetGlobalGenerator(); } +cmLocalGenerator* cmGeneratorTarget::GetLocalGenerator() const +{ + return this->LocalGenerator; +} + //---------------------------------------------------------------------------- int cmGeneratorTarget::GetType() const { diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index a8edcb8cb..645b79284 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -26,6 +26,8 @@ class cmGeneratorTarget public: cmGeneratorTarget(cmTarget*); + cmLocalGenerator* GetLocalGenerator() const; + int GetType() const; std::string GetName() const; const char *GetProperty(const std::string& prop) const;