diff options
author | Brad King <brad.king@kitware.com> | 2010-11-05 08:08:37 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-11-05 08:08:37 -0400 |
commit | 80edcc6a86d7b5e00073c5cd2584383f971b7645 (patch) | |
tree | f4956f0df3cdc5415db7fc45232b5db81c0cf7e5 /Source/cmAddCustomCommandCommand.h | |
parent | 947de96030723fa231ed1ddc9d94d755f3d68d0b (diff) | |
download | cmake-80edcc6a86d7b5e00073c5cd2584383f971b7645.tar.gz |
Document custom command behavior without DEPENDS (#11407)
The behavior of add_custom_command when no DEPENDS option is specified
matches that of standard Make behavior, but it does not hurt to describe
it explicitly.
Diffstat (limited to 'Source/cmAddCustomCommandCommand.h')
-rw-r--r-- | Source/cmAddCustomCommandCommand.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmAddCustomCommandCommand.h b/Source/cmAddCustomCommandCommand.h index c67caa545c..6c5e1afb03 100644 --- a/Source/cmAddCustomCommandCommand.h +++ b/Source/cmAddCustomCommandCommand.h @@ -152,6 +152,9 @@ public: "If any dependency is an OUTPUT of another custom command in the " "same directory (CMakeLists.txt file) CMake automatically brings the " "other custom command into the target in which this command is built. " + "If DEPENDS is not specified the command will run whenever the OUTPUT " + "is missing; if the command does not actually create the OUTPUT then " + "the rule will always run. " "If DEPENDS specifies any target (created by an ADD_* command) " "a target-level dependency is created to make sure the target is " "built before any target using this custom command. Additionally, " |