diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-06-06 10:59:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-22 17:23:45 (GMT) |
commit | b2b41b83ff594555f3b80c6c2fd12e10e1e97458 (patch) | |
tree | dec6d52c12a077b23e864b6940bc498943467d23 /Source | |
parent | 2e9333a1d0979c4d6ecfe8fd16382ea6526dec9c (diff) | |
download | CMake-b2b41b83ff594555f3b80c6c2fd12e10e1e97458.zip CMake-b2b41b83ff594555f3b80c6c2fd12e10e1e97458.tar.gz CMake-b2b41b83ff594555f3b80c6c2fd12e10e1e97458.tar.bz2 |
cmGeneratorTarget: Add accessor for cmLocalGenerator.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 5 | ||||
-rw-r--r-- | Source/cmGeneratorTarget.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 2f68ab0..482eefd 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 a8edcb8..645b792 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; |