From e0335f5830f78e27c088e0162dd00a973301d043 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Wed, 8 Feb 2023 15:10:41 -0500 Subject: Help: Update $ docs to use cmake -E copy -t The -t argument was added to support using $ in the case that no DLLs are needed. Update the documentation accordingly. --- Help/manual/cmake-generator-expressions.7.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index 8bb9dde..c3e87d7 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 ` 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 $ $ + COMMAND ${CMAKE_COMMAND} -E copy -t $ $ COMMAND_EXPAND_LISTS ) -- cgit v0.12