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/cmCustomCommand.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/cmCustomCommand.h')
-rw-r--r-- | Source/cmCustomCommand.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h index 8f34297..5d59f0a 100644 --- a/Source/cmCustomCommand.h +++ b/Source/cmCustomCommand.h @@ -53,6 +53,12 @@ public: /** Get the comment string for the command. */ const char* GetComment() const; + /** Append to the list of command lines. */ + void AppendCommands(const cmCustomCommandLines& commandLines); + + /** Append to the list of dependencies. */ + void AppendDepends(const std::vector<std::string>& depends); + /** Set/Get whether old-style escaping should be used. */ bool GetEscapeOldStyle() const; void SetEscapeOldStyle(bool b); |