소스 검색

ENH: Patch from Alex to document this command as discouraged.

Brad King 19 년 전
부모
커밋
03a46e0381
2개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      Source/cmUseMangledMesaCommand.h
  2. 6 0
      Source/cmVariableRequiresCommand.h

+ 6 - 0
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);

+ 6 - 0
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);
 };