diff options
author | Brad King <brad.king@kitware.com> | 2006-10-04 19:24:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-04 19:24:26 (GMT) |
commit | 2dfa2ba888bb3f1ea5dd5eedf84a3c5b23bdb202 (patch) | |
tree | 91630ef8018256a23451bbdba07436c2374732ea /Source/cmAddCustomCommandCommand.h | |
parent | 523075ded543cbb7044bc4b56203d329aff0cb42 (diff) | |
download | CMake-2dfa2ba888bb3f1ea5dd5eedf84a3c5b23bdb202.zip CMake-2dfa2ba888bb3f1ea5dd5eedf84a3c5b23bdb202.tar.gz CMake-2dfa2ba888bb3f1ea5dd5eedf84a3c5b23bdb202.tar.bz2 |
ENH: Added APPEND option to ADD_CUSTOM_COMMAND to allow extra dependencies to be connected later. This is useful to create one rule and then have a macro add things to it later. This addresses bug#2151.
Diffstat (limited to 'Source/cmAddCustomCommandCommand.h')
-rw-r--r-- | Source/cmAddCustomCommandCommand.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/cmAddCustomCommandCommand.h b/Source/cmAddCustomCommandCommand.h index fdea26a..2b27da1 100644 --- a/Source/cmAddCustomCommandCommand.h +++ b/Source/cmAddCustomCommandCommand.h @@ -72,7 +72,7 @@ public: " [MAIN_DEPENDENCY depend]\n" " [DEPENDS [depends...]]\n" " [WORKING_DIRECTORY dir]\n" - " [COMMENT comment] [VERBATIM])\n" + " [COMMENT comment] [VERBATIM] [APPEND])\n" "This defines a new command that can be executed during the build " "process. The outputs named should be listed as source files in the " "target for which they are to be generated. " @@ -104,7 +104,15 @@ public: "Studio 7 or later. For all other generators PRE_BUILD " "will be treated as PRE_LINK. " "If WORKING_DIRECTORY is specified the command will be executed " - "in the directory given.\n" + "in the directory given." + "\n" + "If APPEND is specified the COMMAND and DEPENDS option values " + "are appended to the custom command for the first output specified. " + "There must have already been a previous call to this command with " + "the same output. The COMMENT, WORKING_DIRECTORY, and MAIN_DEPENDENCY " + "options are currently ignored when APPEND is given, " + "but may be used in the future." + "\n" "If VERBATIM is given then all the arguments to the commands will be " "passed exactly as specified no matter the build tool used. " "Note that one level of escapes is still used by the CMake language " |