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.cxx | |
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.cxx')
-rw-r--r-- | Source/cmCustomCommand.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/cmCustomCommand.cxx b/Source/cmCustomCommand.cxx index b0df423..60896b1 100644 --- a/Source/cmCustomCommand.cxx +++ b/Source/cmCustomCommand.cxx @@ -134,3 +134,23 @@ void cmCustomCommand::SetEscapeAllowMakeVars(bool b) { this->EscapeAllowMakeVars = b; } + +//---------------------------------------------------------------------------- +cmCustomCommand::ImplicitDependsList const& +cmCustomCommand::GetImplicitDepends() const +{ + return this->ImplicitDepends; +} + +//---------------------------------------------------------------------------- +void cmCustomCommand::SetImplicitDepends(ImplicitDependsList const& l) +{ + this->ImplicitDepends = l; +} + +//---------------------------------------------------------------------------- +void cmCustomCommand::AppendImplicitDepends(ImplicitDependsList const& l) +{ + this->ImplicitDepends.insert(this->ImplicitDepends.end(), + l.begin(), l.end()); +} |