cmGeneratorTarget: Add accessor for cmLocalGenerator.

This commit is contained in:
Stephen Kelly 2015-06-06 12:59:25 +02:00 committed by Brad King
parent 2e9333a1d0
commit b2b41b83ff
2 changed files with 7 additions and 0 deletions

View File

@ -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
{

View File

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