diff options
author | Joachim Wuttke (o) <j.wuttke@fz-juelich.de> | 2018-10-25 11:34:27 (GMT) |
---|---|---|
committer | Joachim Wuttke (o) <j.wuttke@fz-juelich.de> | 2018-10-25 11:47:31 (GMT) |
commit | adbaadf0eef855aeb043babceae67e324b69fef0 (patch) | |
tree | cafc762ddcd625ba840242484da0d3ffe3a226f2 /Help/command/add_custom_command.rst | |
parent | 2459b5e8324ced6435a12fedf98067a0d9fac5f1 (diff) | |
download | CMake-adbaadf0eef855aeb043babceae67e324b69fef0.zip CMake-adbaadf0eef855aeb043babceae67e324b69fef0.tar.gz CMake-adbaadf0eef855aeb043babceae67e324b69fef0.tar.bz2 |
Help: Apply syntax highlighting to project commands
* Replace most "::" by ".. code-block:: cmake"
* Header sentence in imperative voice,
detailed command description in present tense.
Diffstat (limited to 'Help/command/add_custom_command.rst')
-rw-r--r-- | Help/command/add_custom_command.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst index 71fe494..9bf0d87 100644 --- a/Help/command/add_custom_command.rst +++ b/Help/command/add_custom_command.rst @@ -8,7 +8,9 @@ There are two main signatures for ``add_custom_command``. Generating Files ^^^^^^^^^^^^^^^^ -The first signature is for adding a custom command to produce an output:: +The first signature is for adding a custom command to produce an output: + +.. code-block:: cmake add_custom_command(OUTPUT output1 [output2 ...] COMMAND command1 [ARGS] [args1...] @@ -200,7 +202,7 @@ before or after building the target. The command becomes part of the target and will only execute when the target itself is built. If the target is already built, the command will not execute. -:: +.. code-block:: cmake add_custom_command(TARGET <target> PRE_BUILD | PRE_LINK | POST_BUILD |