diff options
author | Brad King <brad.king@kitware.com> | 2007-09-17 14:50:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-09-17 14:50:46 (GMT) |
commit | d7a5d4c191b503f0d30abf9fbf0672370157c430 (patch) | |
tree | 225cd10e9967d49c05142e1dc8e938177114101b /Source/cmCustomCommand.h | |
parent | 267fd538d837d40e7ed865326899e0105265a515 (diff) | |
download | CMake-d7a5d4c191b503f0d30abf9fbf0672370157c430.zip CMake-d7a5d4c191b503f0d30abf9fbf0672370157c430.tar.gz CMake-d7a5d4c191b503f0d30abf9fbf0672370157c430.tar.bz2 |
ENH: Added IMPLICIT_DEPENDS option to ADD_CUSTOM_COMMAND. It currently works only for Makefile generators. It allows a custom command to have implicit dependencies in the form of C or CXX sources.
Diffstat (limited to 'Source/cmCustomCommand.h')
-rw-r--r-- | Source/cmCustomCommand.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h index 17b4c0d..70319e5 100644 --- a/Source/cmCustomCommand.h +++ b/Source/cmCustomCommand.h @@ -68,6 +68,12 @@ public: bool GetEscapeAllowMakeVars() const; void SetEscapeAllowMakeVars(bool b); + typedef std::pair<cmStdString, cmStdString> ImplicitDependsPair; + class ImplicitDependsList: public std::vector<ImplicitDependsPair> {}; + void SetImplicitDepends(ImplicitDependsList const&); + void AppendImplicitDepends(ImplicitDependsList const&); + ImplicitDependsList const& GetImplicitDepends() const; + private: std::vector<std::string> Outputs; std::vector<std::string> Depends; @@ -77,6 +83,7 @@ private: std::string WorkingDirectory; bool EscapeAllowMakeVars; bool EscapeOldStyle; + ImplicitDependsList ImplicitDepends; }; #endif |