diff options
author | Brad King <brad.king@kitware.com> | 2023-01-24 14:20:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-01-24 14:20:14 (GMT) |
commit | 7c241bccc305d1ffa62e143eb9e795d10091978c (patch) | |
tree | 03233bf3531ca9ccb74346b04fe32d690dcd5919 /Help | |
parent | 8540fe31d1cdc70c6411cb5ac8e1fdc7c6d4ba68 (diff) | |
parent | d59ab71779f5e0f77c67e6006a2072ff72348646 (diff) | |
download | CMake-7c241bccc305d1ffa62e143eb9e795d10091978c.zip CMake-7c241bccc305d1ffa62e143eb9e795d10091978c.tar.gz CMake-7c241bccc305d1ffa62e143eb9e795d10091978c.tar.bz2 |
Merge topic 'wrap-ninja-multi'
d59ab71779 Help: Wrap long examples in Ninja Multi-Config doc
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8103
Diffstat (limited to 'Help')
-rw-r--r-- | Help/generator/Ninja Multi-Config.rst | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/Help/generator/Ninja Multi-Config.rst b/Help/generator/Ninja Multi-Config.rst index f669ad4..f50bb55 100644 --- a/Help/generator/Ninja Multi-Config.rst +++ b/Help/generator/Ninja Multi-Config.rst @@ -122,8 +122,15 @@ As an example, consider the following: add_custom_command( OUTPUT "$<CONFIG>.txt" - COMMAND generator "$<CONFIG>.txt" "$<OUTPUT_CONFIG:$<CONFIG>>" "$<COMMAND_CONFIG:$<CONFIG>>" - DEPENDS tgt1 "$<TARGET_FILE:tgt2>" "$<OUTPUT_CONFIG:$<TARGET_FILE:tgt3>>" "$<COMMAND_CONFIG:$<TARGET_FILE:tgt4>>" + COMMAND + generator "$<CONFIG>.txt" + "$<OUTPUT_CONFIG:$<CONFIG>>" + "$<COMMAND_CONFIG:$<CONFIG>>" + DEPENDS + tgt1 + "$<TARGET_FILE:tgt2>" + "$<OUTPUT_CONFIG:$<TARGET_FILE:tgt3>>" + "$<COMMAND_CONFIG:$<TARGET_FILE:tgt4>>" ) Assume that ``generator``, ``tgt1``, ``tgt2``, ``tgt3``, and ``tgt4`` are all @@ -144,18 +151,23 @@ the ``build-Release.ninja`` file) unless they have no ``BYPRODUCTS`` or their add_custom_command( TARGET exe POST_BUILD - COMMAND ${CMAKE_COMMAND} -E echo "Running no-byproduct command" + COMMAND + ${CMAKE_COMMAND} -E echo "Running no-byproduct command" ) add_custom_command( TARGET exe POST_BUILD - COMMAND ${CMAKE_COMMAND} -E echo "Running separate-byproduct command for $<CONFIG>" + COMMAND + ${CMAKE_COMMAND} -E echo + "Running separate-byproduct command for $<CONFIG>" BYPRODUCTS $<CONFIG>.txt ) add_custom_command( TARGET exe POST_BUILD - COMMAND ${CMAKE_COMMAND} -E echo "Running common-byproduct command for $<CONFIG>" + COMMAND + ${CMAKE_COMMAND} -E echo + "Running common-byproduct command for $<CONFIG>" BYPRODUCTS exe.txt ) |