diff options
author | Brad King <brad.king@kitware.com> | 2008-05-14 15:38:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-14 15:38:47 (GMT) |
commit | 600e5e274ea5e78989c9355685e97d6f4d6f28ec (patch) | |
tree | d101d1d699fbbdb3a2e36a581228cd0c56d2b72a /Source/cmCustomCommand.h | |
parent | 3fb5602e547b4ae23ae9bdcc36be09bbc5f6fbea (diff) | |
download | CMake-600e5e274ea5e78989c9355685e97d6f4d6f28ec.zip CMake-600e5e274ea5e78989c9355685e97d6f4d6f28ec.tar.gz CMake-600e5e274ea5e78989c9355685e97d6f4d6f28ec.tar.bz2 |
ENH: Add SKIP_RULE_DEPENDS option for add_custom_command()
- Allows make rules to be created with no dependencies.
- Such rules will not re-run even if the commands themselves change.
- Useful to create rules that run only if the output is missing.
Diffstat (limited to 'Source/cmCustomCommand.h')
-rw-r--r-- | Source/cmCustomCommand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h index 70319e5..c6ad772 100644 --- a/Source/cmCustomCommand.h +++ b/Source/cmCustomCommand.h @@ -68,6 +68,10 @@ public: bool GetEscapeAllowMakeVars() const; void SetEscapeAllowMakeVars(bool b); + /** Set/Get whether to skip the dependency on the rule itself. */ + bool GetSkipRuleDepends() const; + void SetSkipRuleDepends(bool b); + typedef std::pair<cmStdString, cmStdString> ImplicitDependsPair; class ImplicitDependsList: public std::vector<ImplicitDependsPair> {}; void SetImplicitDepends(ImplicitDependsList const&); @@ -83,6 +87,7 @@ private: std::string WorkingDirectory; bool EscapeAllowMakeVars; bool EscapeOldStyle; + bool SkipRuleDepends; ImplicitDependsList ImplicitDepends; }; |