mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
configure_file: Add option to control file permissions transfer to copy
Issue: #20866
This commit is contained in:
committed by
Brad King
parent
f2b84d24cf
commit
27b03281e2
@@ -7,6 +7,7 @@ Copy a file to another location and modify its contents.
|
||||
|
||||
configure_file(<input> <output>
|
||||
[COPYONLY] [ESCAPE_QUOTES] [@ONLY]
|
||||
[NO_SOURCE_PERMISSIONS]
|
||||
[NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])
|
||||
|
||||
Copies an ``<input>`` file to an ``<output>`` file and substitutes
|
||||
@@ -82,6 +83,11 @@ The arguments are:
|
||||
Restrict variable replacement to references of the form ``@VAR@``.
|
||||
This is useful for configuring scripts that use ``${VAR}`` syntax.
|
||||
|
||||
``NO_SOURCE_PERMISSIONS``
|
||||
Does not transfer the file permissions of the original file to the copy.
|
||||
The copied file permissions default to the standard 644 value
|
||||
(-rw-r--r--).
|
||||
|
||||
``NEWLINE_STYLE <style>``
|
||||
Specify the newline style for the output file. Specify
|
||||
``UNIX`` or ``LF`` for ``\n`` newlines, or specify
|
||||
|
||||
5
Help/release/dev/configure_file-permission-control.rst
Normal file
5
Help/release/dev/configure_file-permission-control.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
configure_file-permission-control
|
||||
---------------------------------
|
||||
|
||||
* The :command:`configure_file` command gained a ``NO_SOURCE_PERMISSIONS``
|
||||
option to suppress copying the input file's permissions to the output file.
|
||||
Reference in New Issue
Block a user