summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-09-17 14:50:46 (GMT)
committerBrad King <brad.king@kitware.com>2007-09-17 14:50:46 (GMT)
commitd7a5d4c191b503f0d30abf9fbf0672370157c430 (patch)
tree225cd10e9967d49c05142e1dc8e938177114101b /Source/cmCustomCommand.cxx
parent267fd538d837d40e7ed865326899e0105265a515 (diff)
downloadCMake-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.cxx20
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());
+}