diff options
author | Asit Dhal <dhal.asitk@gmail.com> | 2020-10-28 10:07:57 (GMT) |
---|---|---|
committer | Asit Dhal <dhal.asitk@gmail.com> | 2020-12-21 11:16:16 (GMT) |
commit | c3385dd8bd7c78cf03d7e52ae0f49e8216cdaaea (patch) | |
tree | 429c6d6e88db90402670eef5e288f7f4a1bb29ca /Help/command/file.rst | |
parent | c89514a6a47b678dddb703c302def4fe56abe275 (diff) | |
download | CMake-c3385dd8bd7c78cf03d7e52ae0f49e8216cdaaea.zip CMake-c3385dd8bd7c78cf03d7e52ae0f49e8216cdaaea.tar.gz CMake-c3385dd8bd7c78cf03d7e52ae0f49e8216cdaaea.tar.bz2 |
file(GENERATE): Support options to manipulate file permissions
Fixes: #15653
Diffstat (limited to 'Help/command/file.rst')
-rw-r--r-- | Help/command/file.rst | 15 |
1 files changed, 14 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 |