From c0a0f8842b0c25d873d1871e3c2ef7b00b66d491 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 22 Jan 2007 10:52:27 -0500 Subject: [PATCH] ENH: Patch from Alex to document WRITE_FILE as a discouraged command. --- Source/cmWriteFileCommand.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmWriteFileCommand.h b/Source/cmWriteFileCommand.h index 37d357503..7d5c2bd1f 100644 --- a/Source/cmWriteFileCommand.h +++ b/Source/cmWriteFileCommand.h @@ -76,6 +76,12 @@ public: "input files to CMake."; } + /** This command is kept for compatibility with older CMake versions. */ + virtual bool IsDiscouraged() + { + return true; + } + cmTypeMacro(cmWriteFileCommand, cmCommand); };