mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
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.
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user