diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-15 19:51:39 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-15 19:51:39 (GMT) |
commit | 63a34874d5a7be2136491fbc301221804d9a8ccb (patch) | |
tree | 2b9d4454e5fd06667cef1f887642ab5e8e4aadbd /Source/cmCommand.h | |
parent | 65b1771332bc4905da9919104d18cda2a3dfdf9b (diff) | |
download | CMake-63a34874d5a7be2136491fbc301221804d9a8ccb.zip CMake-63a34874d5a7be2136491fbc301221804d9a8ccb.tar.gz CMake-63a34874d5a7be2136491fbc301221804d9a8ccb.tar.bz2 |
ENH: Add accessor for Makefile and make SetError public
Diffstat (limited to 'Source/cmCommand.h')
-rw-r--r-- | Source/cmCommand.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmCommand.h b/Source/cmCommand.h index 2f5fc7e..cb8c9e2 100644 --- a/Source/cmCommand.h +++ b/Source/cmCommand.h @@ -49,6 +49,7 @@ public: */ void SetMakefile(cmMakefile*m) {m_Makefile = m; } + cmMakefile* GetMakefile() { return m_Makefile; } /** * This is called by the cmMakefile when the command is first @@ -162,13 +163,17 @@ public: virtual bool IsA(const char *type) { return cmCommand::IsTypeOf(type); } -protected: + /** + * Set the error message + */ void SetError(const char* e) { m_Error = this->GetName(); m_Error += " "; m_Error += e; } + +protected: cmMakefile* m_Makefile; private: |