summaryrefslogtreecommitdiff
path: root/Source/cmVariableRequiresCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-01-24 13:40:31 -0500
committerBrad King <brad.king@kitware.com>2007-01-24 13:40:31 -0500
commit03a46e03810ea22c357033bd83508c47766592d6 (patch)
treeac5e24178e4573c7f863e2c369ca2e2e6455ab11 /Source/cmVariableRequiresCommand.h
parent1d34e22c96f4c242d801bfc5747197734eb184ea (diff)
downloadcmake-03a46e03810ea22c357033bd83508c47766592d6.tar.gz
ENH: Patch from Alex to document this command as discouraged.
Diffstat (limited to 'Source/cmVariableRequiresCommand.h')
-rw-r--r--Source/cmVariableRequiresCommand.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmVariableRequiresCommand.h b/Source/cmVariableRequiresCommand.h
index becd108c5c..28ef7bd936 100644
--- a/Source/cmVariableRequiresCommand.h
+++ b/Source/cmVariableRequiresCommand.h
@@ -72,6 +72,12 @@ public:
"is reported.";
}
+ /** This command is kept for compatibility with older CMake versions. */
+ virtual bool IsDiscouraged()
+ {
+ return true;
+ }
+
cmTypeMacro(cmVariableRequiresCommand, cmCommand);
};