summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-02-09 13:45:22 +0000
committerKitware Robot <kwrobot@kitware.com>2023-02-09 08:45:38 -0500
commite25d3a0d5a767c25e31d35aa2e15f6117a5db613 (patch)
treea3ca31943359794cc255ff9267b756923c67cf25
parentfc4e31d7034153cb9d72f3d812ad0c5459580dd3 (diff)
parente0335f5830f78e27c088e0162dd00a973301d043 (diff)
downloadcmake-e25d3a0d5a767c25e31d35aa2e15f6117a5db613.tar.gz
Merge topic 'target-runtime-dlls-doc' into release-3.26
e0335f5830 Help: Update $<TARGET_RUNTIME_DLLS> docs to use cmake -E copy -t Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8185
-rw-r--r--Help/manual/cmake-generator-expressions.7.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst
index 8bb9ddef7d..c3e87d77c9 100644
--- a/Help/manual/cmake-generator-expressions.7.rst
+++ b/Help/manual/cmake-generator-expressions.7.rst
@@ -1673,8 +1673,8 @@ In the following, the phrase "the ``tgt`` filename" means the name of the
**On non-DLL platforms, this expression always evaluates to an empty string**.
This generator expression can be used to copy all of the DLLs that a target
- depends on into its output directory in a ``POST_BUILD`` custom command. For
- example:
+ depends on into its output directory in a ``POST_BUILD`` custom command using
+ the :option:`cmake -E copy -t <cmake-E copy>` command. For example:
.. code-block:: cmake
@@ -1683,7 +1683,7 @@ In the following, the phrase "the ``tgt`` filename" means the name of the
add_executable(exe main.c)
target_link_libraries(exe PRIVATE foo::foo foo::bar)
add_custom_command(TARGET exe POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:exe> $<TARGET_FILE_DIR:exe>
+ COMMAND ${CMAKE_COMMAND} -E copy -t $<TARGET_FILE_DIR:exe> $<TARGET_RUNTIME_DLLS:exe>
COMMAND_EXPAND_LISTS
)