From 03a46e03810ea22c357033bd83508c47766592d6 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 24 Jan 2007 13:40:31 -0500 Subject: [PATCH] ENH: Patch from Alex to document this command as discouraged. --- Source/cmUseMangledMesaCommand.h | 6 ++++++ Source/cmVariableRequiresCommand.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Source/cmUseMangledMesaCommand.h b/Source/cmUseMangledMesaCommand.h index 4fb68fa46..46aa10041 100644 --- a/Source/cmUseMangledMesaCommand.h +++ b/Source/cmUseMangledMesaCommand.h @@ -72,6 +72,12 @@ public: "being added to the include directory path earlier."; } + /** This command is kept for compatibility with older CMake versions. */ + virtual bool IsDiscouraged() + { + return true; + } + protected: void CopyAndFullPathMesaHeader(const char* source, const char* outdir); diff --git a/Source/cmVariableRequiresCommand.h b/Source/cmVariableRequiresCommand.h index becd108c5..28ef7bd93 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); };