diff options
author | Brad King <brad.king@kitware.com> | 2020-08-25 14:30:54 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-08-25 14:31:02 (GMT) |
commit | ea67dbc4cd3cf4d8c02ba4099b4e9600ef93b708 (patch) | |
tree | 2d4de816b5081471441b6411a069e1d41bae6443 /Help | |
parent | 0b0dc86eab8bbb2b6e1343a89eb4d147714aea19 (diff) | |
parent | 27a912193bfe77e400784b152b1cd67003915c37 (diff) | |
download | CMake-ea67dbc4cd3cf4d8c02ba4099b4e9600ef93b708.zip CMake-ea67dbc4cd3cf4d8c02ba4099b4e9600ef93b708.tar.gz CMake-ea67dbc4cd3cf4d8c02ba4099b4e9600ef93b708.tar.bz2 |
Merge topic 'file_generate_target'
27a912193b file(GENERATE): Add TARGET argument
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5131
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/file.rst | 6 | ||||
-rw-r--r-- | Help/release/dev/file-generate-target.rst | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst index 2cf938b..953172b 100644 --- a/Help/command/file.rst +++ b/Help/command/file.rst @@ -449,7 +449,7 @@ modified. file(GENERATE OUTPUT output-file <INPUT input-file|CONTENT content> - [CONDITION expression]) + [CONDITION expression] [TARGET target]) Generate an output file for each build configuration supported by the current :manual:`CMake Generator <cmake-generators(7)>`. Evaluate @@ -479,6 +479,10 @@ from the input content to produce the output content. The options are: with respect to the value of :variable:`CMAKE_CURRENT_BINARY_DIR`. See policy :policy:`CMP0070`. +``TARGET <target>`` + Specify target which to use when evaluating generator expressions. Enables + use of generator expressions requiring a target. + 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-target.rst b/Help/release/dev/file-generate-target.rst new file mode 100644 index 0000000..09fb460 --- /dev/null +++ b/Help/release/dev/file-generate-target.rst @@ -0,0 +1,5 @@ +file-generate-target +-------------------- + +* The :command:`file(GENERATE)` command gained a new ``TARGET`` keyword to + support resolving target-dependent generator expressions. |