diff options
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r-- | Source/cmMacroCommand.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index 9917394..9bfc70b 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -3,6 +3,8 @@ #include "cmMacroCommand.h" #include "cmAlgorithms.h" +#include "cmState.h" +#include "cmSystemTools.h" #include "cmake.h" // define the class for macro commands @@ -15,12 +17,9 @@ public: ~cmMacroHelperCommand() CM_OVERRIDE {} /** - * 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. */ - bool ShouldAppearInDocumentation() const CM_OVERRIDE { return false; } + bool IsUserDefined() const CM_OVERRIDE { return true; } /** * This is a virtual constructor for the command. @@ -59,8 +58,6 @@ public: */ std::string GetName() const CM_OVERRIDE { return this->Args[0]; } - cmTypeMacro(cmMacroHelperCommand, cmCommand); - std::vector<std::string> Args; std::vector<cmListFileFunction> Functions; cmPolicies::PolicyMap Policies; |