diff options
author | FeRD (Frank Dana) <ferdnyc@gmail.com> | 2023-01-20 21:33:05 (GMT) |
---|---|---|
committer | FeRD (Frank Dana) <ferdnyc@gmail.com> | 2023-01-20 21:33:05 (GMT) |
commit | d59ab71779f5e0f77c67e6006a2072ff72348646 (patch) | |
tree | 0694fa0fff20211a27e2613bf7d1bf9364c8468f /Help/generator | |
parent | 35c220e653a06684ddbd27a4d8487668067cbf20 (diff) | |
download | CMake-d59ab71779f5e0f77c67e6006a2072ff72348646.zip CMake-d59ab71779f5e0f77c67e6006a2072ff72348646.tar.gz CMake-d59ab71779f5e0f77c67e6006a2072ff72348646.tar.bz2 |
Help: Wrap long examples in Ninja Multi-Config doc
Diffstat (limited to 'Help/generator')
-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 ) |