summaryrefslogtreecommitdiffstats
path: root/Source/cmCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-24 14:16:43 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-10-24 14:16:43 (GMT)
commitc1b96fddf835d5faf27698d5a1637bd1507274e0 (patch)
tree63dc641f20a74e86f69c4b154adb20bc914efe34 /Source/cmCommand.h
parentb899c0a92f6833c4996276d86d9e0fb3d42df77c (diff)
parent2214011f7b3b13fe7ae0f68f0f9d49af11e12edd (diff)
downloadCMake-c1b96fddf835d5faf27698d5a1637bd1507274e0.zip
CMake-c1b96fddf835d5faf27698d5a1637bd1507274e0.tar.gz
CMake-c1b96fddf835d5faf27698d5a1637bd1507274e0.tar.bz2
Merge topic 'remove-cmobject-uses'
2214011f Make cmCPackGenerator not inherit from cmObject 7f9a8d53 Make cmCPackGeneratorFactory not inherit from cmObject fb0b087c Make cmCTestGenericHandler not inherit from cmObject 2169b0fa Make cmCPackLog not inherit from cmObject 9855ebf1 Make cmCommand not inherit from cmObject
Diffstat (limited to 'Source/cmCommand.h')
-rw-r--r--Source/cmCommand.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/cmCommand.h b/Source/cmCommand.h
index 9299c71..65bb7c5 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.
@@ -83,12 +81,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.