summaryrefslogtreecommitdiff
path: root/Source/cmVariableRequiresCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmVariableRequiresCommand.h')
-rw-r--r--Source/cmVariableRequiresCommand.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmVariableRequiresCommand.h b/Source/cmVariableRequiresCommand.h
index f165f39471..91c351e60c 100644
--- a/Source/cmVariableRequiresCommand.h
+++ b/Source/cmVariableRequiresCommand.h
@@ -39,12 +39,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "variable_requires";}
+ virtual const char* GetName() const { return "variable_requires";}
/**
* Succinct documentation.
*/
- virtual const char* GetTerseDocumentation()
+ virtual const char* GetTerseDocumentation() const
{
return "Deprecated. Use the if() command instead.";
}
@@ -52,7 +52,7 @@ public:
/**
* More documentation.
*/
- virtual const char* GetFullDocumentation()
+ virtual const char* GetFullDocumentation() const
{
return
"Assert satisfaction of an option's required variables.\n"
@@ -70,7 +70,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
- virtual bool IsDiscouraged()
+ virtual bool IsDiscouraged() const
{
return true;
}