summaryrefslogtreecommitdiffstats
path: root/Source/cmWriteFileCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-01-22 15:52:27 (GMT)
committerBrad King <brad.king@kitware.com>2007-01-22 15:52:27 (GMT)
commitc0a0f8842b0c25d873d1871e3c2ef7b00b66d491 (patch)
treeb8e146fc5b458993aaf208a448b4c5565bc62771 /Source/cmWriteFileCommand.h
parent1e566707daeb7ce71bee2c1c09b412e603f04bb5 (diff)
downloadCMake-c0a0f8842b0c25d873d1871e3c2ef7b00b66d491.zip
CMake-c0a0f8842b0c25d873d1871e3c2ef7b00b66d491.tar.gz
CMake-c0a0f8842b0c25d873d1871e3c2ef7b00b66d491.tar.bz2
ENH: Patch from Alex to document WRITE_FILE as a discouraged command.
Diffstat (limited to 'Source/cmWriteFileCommand.h')
-rw-r--r--Source/cmWriteFileCommand.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmWriteFileCommand.h b/Source/cmWriteFileCommand.h
index 37d3575..7d5c2bd 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);
};