[cmake-commits] king committed cmWriteFileCommand.h 1.8 1.9

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Jan 22 10:52:29 EST 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv454/Source

Modified Files:
	cmWriteFileCommand.h 
Log Message:
ENH: Patch from Alex to document WRITE_FILE as a discouraged command.


Index: cmWriteFileCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmWriteFileCommand.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- cmWriteFileCommand.h	17 Nov 2005 16:46:16 -0000	1.8
+++ cmWriteFileCommand.h	22 Jan 2007 15:52:27 -0000	1.9
@@ -76,6 +76,12 @@
       "input files to CMake.";
     }
   
+  /** This command is kept for compatibility with older CMake versions. */
+  virtual bool IsDiscouraged()
+    {
+    return true;
+    }
+
   cmTypeMacro(cmWriteFileCommand, cmCommand);
 };
 



More information about the Cmake-commits mailing list