2013-10-15 19:17:36 +04:00
|
|
|
write_file
|
|
|
|
----------
|
|
|
|
|
2015-06-05 00:51:22 +03:00
|
|
|
Deprecated. Use the :command:`file(WRITE)` command instead.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
write_file(filename "message to write"... [APPEND])
|
|
|
|
|
|
|
|
The first argument is the file name, the rest of the arguments are
|
2015-06-05 00:51:22 +03:00
|
|
|
messages to write. If the argument ``APPEND`` is specified, then the
|
2013-10-15 19:17:36 +04:00
|
|
|
message will be appended.
|
|
|
|
|
2015-06-05 00:51:22 +03:00
|
|
|
NOTE 1: :command:`file(WRITE)` and :command:`file(APPEND)` do exactly
|
|
|
|
the same as this one but add some more functionality.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2015-06-05 00:51:22 +03:00
|
|
|
NOTE 2: When using ``write_file`` the produced file cannot be used as an
|
2013-10-15 19:17:36 +04:00
|
|
|
input to CMake (CONFIGURE_FILE, source file ...) because it will lead
|
2015-06-05 00:51:22 +03:00
|
|
|
to an infinite loop. Use :command:`configure_file` if you want to
|
|
|
|
generate input files to CMake.
|