1write_file 2---------- 3 4.. deprecated:: 3.0 5 6 Use the :command:`file(WRITE)` command instead. 7 8:: 9 10 write_file(filename "message to write"... [APPEND]) 11 12The first argument is the file name, the rest of the arguments are 13messages to write. If the argument ``APPEND`` is specified, then the 14message will be appended. 15 16NOTE 1: :command:`file(WRITE)` and :command:`file(APPEND)` do exactly 17the same as this one but add some more functionality. 18 19NOTE 2: When using ``write_file`` the produced file cannot be used as an 20input to CMake (CONFIGURE_FILE, source file ...) because it will lead 21to an infinite loop. Use :command:`configure_file` if you want to 22generate input files to CMake. 23