浏览代码

cmGeneratorTarget: Add accessor for cmLocalGenerator.

Stephen Kelly 10 年之前
父节点
当前提交
b2b41b83ff
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 5 0
      Source/cmGeneratorTarget.cxx
  2. 2 0
      Source/cmGeneratorTarget.h

+ 5 - 0
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
 {

+ 2 - 0
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;