1
0
Эх сурвалжийг харах

cmGeneratorTarget: Add accessor for cmLocalGenerator.

Stephen Kelly 10 жил өмнө
parent
commit
b2b41b83ff

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