diff options
author | Brad King <brad.king@kitware.com> | 2018-01-17 15:35:26 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-01-17 15:35:31 (GMT) |
commit | af30899cb4431d6712fea5ac09215a92b3f16ccb (patch) | |
tree | 9c80761d96c0f4e7389baa801911a4f7c8881224 | |
parent | 8b49fc3c6f46f6606614de5705d6ca6fbf16b886 (diff) | |
parent | 60216e158fe2f9e68d1dff6676852c45e9d1ffc2 (diff) | |
download | CMake-af30899cb4431d6712fea5ac09215a92b3f16ccb.zip CMake-af30899cb4431d6712fea5ac09215a92b3f16ccb.tar.gz CMake-af30899cb4431d6712fea5ac09215a92b3f16ccb.tar.bz2 |
Merge topic 'fix-documentation'
60216e15 Help: Improved MAIN_DEPENDENCY documentation of add_custom_command()
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1665
-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 1b0aa14..d4f644a 100644 --- a/Help/command/add_custom_command.rst +++ b/Help/command/add_custom_command.rst @@ -146,8 +146,10 @@ The options are: Specify the primary input source file to the command. This is treated just like any value given to the ``DEPENDS`` option but also suggests to Visual Studio generators where to hang - the custom command. At most one custom command may specify a - given source file as its main dependency. + the custom command. Each source file may have at most one command + specifying it as its main dependency. A compile command (i.e. for a + library or an executable) counts as an implicit main dependency which + gets silently overwritten by a custom command specification. ``OUTPUT`` Specify the output files the command is expected to produce. |