summaryrefslogtreecommitdiffstats
path: root/Help/command/configure_file.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-27 11:10:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-10-27 11:11:13 (GMT)
commitc79e02c4c3acb16d81d1b940074853f653634546 (patch)
tree3c3b014531fa053942bb39ed385880c5cabf5031 /Help/command/configure_file.rst
parentecab18bb7ccfc8e91f1465aec32f98afd1b2a4ef (diff)
parent03ad0e61c19304ae145cfa0683b43d9756d37ff5 (diff)
downloadCMake-c79e02c4c3acb16d81d1b940074853f653634546.zip
CMake-c79e02c4c3acb16d81d1b940074853f653634546.tar.gz
CMake-c79e02c4c3acb16d81d1b940074853f653634546.tar.bz2
Merge topic 'cmake-20866'
03ad0e61c1 configure_file: Add option for user defined permissions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5320
Diffstat (limited to 'Help/command/configure_file.rst')
-rw-r--r--Help/command/configure_file.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/Help/command/configure_file.rst b/Help/command/configure_file.rst
index c59995a..8d66a9b 100644
--- a/Help/command/configure_file.rst
+++ b/Help/command/configure_file.rst
@@ -6,8 +6,9 @@ Copy a file to another location and modify its contents.
.. code-block:: cmake
configure_file(<input> <output>
+ [FILE_PERMISSIONS <permissions>...]
[COPYONLY] [ESCAPE_QUOTES] [@ONLY]
- [NO_SOURCE_PERMISSIONS]
+ [NO_SOURCE_PERMISSIONS] [USE_SOURCE_PERMISSIONS]
[NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])
Copies an ``<input>`` file to an ``<output>`` file and substitutes
@@ -72,6 +73,9 @@ The arguments are:
If the path names an existing directory the output file is placed
in that directory with the same file name as the input file.
+``FILE_PERMISSIONS <permissions>...``
+ Use user provided permissions for the output file.
+
``COPYONLY``
Copy the file without replacing any variable references or other
content. This option may not be used with ``NEWLINE_STYLE``.
@@ -88,6 +92,9 @@ The arguments are:
The copied file permissions default to the standard 644 value
(-rw-r--r--).
+``USE_SOURCE_PERMISSIONS``
+ Transfer the file permissions of the original file to the output file.
+
``NEWLINE_STYLE <style>``
Specify the newline style for the output file. Specify
``UNIX`` or ``LF`` for ``\n`` newlines, or specify