Help/add_custom_command: Add synopsis and signatures

This commit is contained in:
Tyler Yankee
2026-03-10 19:21:39 -04:00
committed by Brad King
parent 412d326d36
commit acd6b7372c
4 changed files with 500 additions and 483 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -383,9 +383,9 @@ Snippet files have a filename with the syntax
``target``
The CMake target associated with the command. Only included when ``role``
is ``compile`` or ``link``, or when ``role`` is ``custom`` and the custom
command is attached to a target with :ref:`add_custom_command(TARGET)`. In
conjunction with ``cmakeContent``, this can be used to look up the target
:prop_tgt:`TYPE` and :prop_tgt:`LABELS`.
command is attached to a target with :command:`add_custom_command(TARGET)`.
In conjunction with ``cmakeContent``, this can be used to look up the
target :prop_tgt:`TYPE` and :prop_tgt:`LABELS`.
``timeStart``
Time at which the command started, expressed as the number of milliseconds

View File

@@ -98,7 +98,6 @@ Commands
* is now supported by the :generator:`Xcode` generator.
* The :command:`add_custom_command(TARGET)` command
(for :ref:`Build Events <add_custom_command(TARGET)>`)
gained support for resolving target-dependent generator expressions.
* The :command:`build_command` command gained a ``PARALLEL_LEVEL`` option.

View File

@@ -50,7 +50,7 @@ Compilers
Commands
--------
* The :ref:`add_custom_command(TARGET) <add_custom_command(TARGET)>`
* The :command:`add_custom_command(TARGET)`
signature now supports adding build events through :ref:`Alias Targets`.
* The :command:`cmake_language(EXIT)` sub-command was added to terminate