diff options
| author | Brad King <brad.king@kitware.com> | 2020-12-22 14:12:14 (GMT) |
|---|---|---|
| committer | Kitware Robot <kwrobot@kitware.com> | 2020-12-22 14:12:20 (GMT) |
| commit | 3cf1a8c59ba8ebaeb86c41300cf3f78469a30310 (patch) | |
| tree | 3dcedae624ba4a71f6ff66b198d5d1abb7489a44 /Help | |
| parent | 3f85a9597838cc550e6c7dcdef6c036fc508b122 (diff) | |
| parent | c3385dd8bd7c78cf03d7e52ae0f49e8216cdaaea (diff) | |
| download | CMake-3cf1a8c59ba8ebaeb86c41300cf3f78469a30310.zip CMake-3cf1a8c59ba8ebaeb86c41300cf3f78469a30310.tar.gz CMake-3cf1a8c59ba8ebaeb86c41300cf3f78469a30310.tar.bz2 | |
Merge topic 'issue-15653'
c3385dd8bd file(GENERATE): Support options to manipulate file permissions
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5437
Diffstat (limited to 'Help')
| -rw-r--r-- | Help/command/file.rst | 15 | ||||
| -rw-r--r-- | Help/release/dev/file-generate-permissions.rst | 6 |
2 files changed, 20 insertions, 1 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst index 6837672..76a07f9 100644 --- a/Help/command/file.rst +++ b/Help/command/file.rst @@ -479,7 +479,9 @@ modified. file(GENERATE OUTPUT output-file <INPUT input-file|CONTENT content> - [CONDITION expression] [TARGET target]) + [CONDITION expression] [TARGET target] + [FILE_PERMISSIONS <permissions>...] + [NO_SOURCE_PERMISSIONS] [USE_SOURCE_PERMISSIONS]) Generate an output file for each build configuration supported by the current :manual:`CMake Generator <cmake-generators(7)>`. Evaluate @@ -520,6 +522,17 @@ from the input content to produce the output content. The options are: require a target for evaluation (e.g. ``$<COMPILE_FEATURES:...>``, ``$<TARGET_PROPERTY:prop>``). +``FILE_PERMISSIONS <permissions>...`` + Use user provided permissions for the generated file. + +``NO_SOURCE_PERMISSIONS`` + The generated file permissions default to the standard 644 value + (-rw-r--r--). + +``USE_SOURCE_PERMISSIONS`` + Transfer the file permissions of the original file to the generated file. + This option expects INPUT option. + Exactly one ``CONTENT`` or ``INPUT`` option must be given. A specific ``OUTPUT`` file may be named by at most one invocation of ``file(GENERATE)``. Generated files are modified and their timestamp updated on subsequent cmake diff --git a/Help/release/dev/file-generate-permissions.rst b/Help/release/dev/file-generate-permissions.rst new file mode 100644 index 0000000..d1a4d42 --- /dev/null +++ b/Help/release/dev/file-generate-permissions.rst @@ -0,0 +1,6 @@ +file-generate-permissions +------------------------- + +* The :command:`file(GENERATE)` command gained ``NO_SOURCE_PERMISSIONS``, + ``USE_SOURCE_PERMISSIONS``, and ``FILE_PERMISSIONS`` options to support + permissions of the generated file. |
