diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-10-22 22:45:08 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-10-22 22:45:08 (GMT) |
commit | 9855ebf11a1556bd0b73a1eaec39232842871528 (patch) | |
tree | b824bf5189ba5315fc0fc7a7f57709eda513afcf /Source/cmCommand.h | |
parent | 1e555a44aa4e3d40bca2f88915c9f957098e5a55 (diff) | |
download | CMake-9855ebf11a1556bd0b73a1eaec39232842871528.zip CMake-9855ebf11a1556bd0b73a1eaec39232842871528.tar.gz CMake-9855ebf11a1556bd0b73a1eaec39232842871528.tar.bz2 |
Make cmCommand not inherit from cmObject
Diffstat (limited to 'Source/cmCommand.h')
-rw-r--r-- | Source/cmCommand.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/cmCommand.h b/Source/cmCommand.h index d8e337d..dcbd0dc 100644 --- a/Source/cmCommand.h +++ b/Source/cmCommand.h @@ -19,11 +19,9 @@ * to support such features as enable/disable, inheritance, * documentation, and construction. */ -class cmCommand : public cmObject +class cmCommand { public: - cmTypeMacro(cmCommand, cmObject); - /** * Construct the command. By default it is enabled with no makefile. */ @@ -36,7 +34,7 @@ public: /** * Need virtual destructor to destroy real command type. */ - ~cmCommand() CM_OVERRIDE {} + virtual ~cmCommand() {} /** * Specify the makefile. @@ -92,12 +90,10 @@ public: virtual bool IsScriptable() const { return false; } /** - * This is used to avoid including this command - * in documentation. This is mainly used by - * cmMacroHelperCommand and cmFunctionHelperCommand - * which cannot provide appropriate documentation. + * This determines if the command is defined in a cmake script. + * It is the case for cmMacroHelperCommand and cmFunctionHelperCommand. */ - virtual bool ShouldAppearInDocumentation() const { return true; } + virtual bool IsUserDefined() const { return false; } /** * The name of the command as specified in CMakeList.txt. |