ENH: Add accessor for Makefile and make SetError public
This commit is contained in:
parent
65b1771332
commit
63a34874d5
|
@ -49,6 +49,7 @@ public:
|
||||||
*/
|
*/
|
||||||
void SetMakefile(cmMakefile*m)
|
void SetMakefile(cmMakefile*m)
|
||||||
{m_Makefile = m; }
|
{m_Makefile = m; }
|
||||||
|
cmMakefile* GetMakefile() { return m_Makefile; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is called by the cmMakefile when the command is first
|
* This is called by the cmMakefile when the command is first
|
||||||
|
@ -162,13 +163,17 @@ public:
|
||||||
virtual bool IsA(const char *type)
|
virtual bool IsA(const char *type)
|
||||||
{ return cmCommand::IsTypeOf(type); }
|
{ return cmCommand::IsTypeOf(type); }
|
||||||
|
|
||||||
protected:
|
/**
|
||||||
|
* Set the error message
|
||||||
|
*/
|
||||||
void SetError(const char* e)
|
void SetError(const char* e)
|
||||||
{
|
{
|
||||||
m_Error = this->GetName();
|
m_Error = this->GetName();
|
||||||
m_Error += " ";
|
m_Error += " ";
|
||||||
m_Error += e;
|
m_Error += e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
cmMakefile* m_Makefile;
|
cmMakefile* m_Makefile;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue