From 9859042c0501f444fbb9d5f2b78b5e563a97f71d Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 16 Dec 2014 10:38:10 -0500 Subject: [PATCH 1/2] Help: Mention add_dependencies in add_custom_target DEPENDS option This will direct readers looking to add target-level dependencies. --- Help/command/add_custom_target.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Help/command/add_custom_target.rst b/Help/command/add_custom_target.rst index 996d08e7d..5134a70de 100644 --- a/Help/command/add_custom_target.rst +++ b/Help/command/add_custom_target.rst @@ -82,6 +82,9 @@ The options are: (``CMakeLists.txt`` file). They will be brought up to date when the target is built. + Use the :command:`add_dependencies` command to add dependencies + on other targets. + ``SOURCES`` Specify additional source files to be included in the custom target. Specified source files will be added to IDE project files for From 953d34fd1fd004459704d4625aff54a9dcf9141b Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 16 Dec 2014 10:38:43 -0500 Subject: [PATCH 2/2] Help: Document MAIN_DEPENDENCY limitation in add_custom_command Specify explicitly that at most one custom command may use a given source file as its main dependency. --- Help/command/add_custom_command.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst index 9fbad4bf6..1307a58c5 100644 --- a/Help/command/add_custom_command.rst +++ b/Help/command/add_custom_command.rst @@ -130,7 +130,8 @@ 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. + the custom command. At most one custom command may specify a + given source file as its main dependency. ``OUTPUT`` Specify the output files the command is expected to produce.