summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceGroup.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-04 13:39:05 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-04 13:39:05 (GMT)
commit4d9b2f59cc4da52e93b6a5d647dba06828d258f3 (patch)
tree7552b7efe08da399577a5fc3846ac13635bd81b2 /Source/cmSourceGroup.cxx
parentfaaadc4a08e8103e25346a437fc203e05b43566c (diff)
downloadCMake-4d9b2f59cc4da52e93b6a5d647dba06828d258f3.zip
CMake-4d9b2f59cc4da52e93b6a5d647dba06828d258f3.tar.gz
CMake-4d9b2f59cc4da52e93b6a5d647dba06828d258f3.tar.bz2
better custom rules
Diffstat (limited to 'Source/cmSourceGroup.cxx')
-rw-r--r--Source/cmSourceGroup.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmSourceGroup.cxx b/Source/cmSourceGroup.cxx
index 49b2bd7..8935a07 100644
--- a/Source/cmSourceGroup.cxx
+++ b/Source/cmSourceGroup.cxx
@@ -121,3 +121,19 @@ void cmSourceGroup::AddCustomCommand(const cmCustomCommand &cmd)
commandFiles.m_Depends.insert(cmd.GetDepends().begin(), cmd.GetDepends().end());
commandFiles.m_Outputs.insert(cmd.GetOutputs().begin(), cmd.GetOutputs().end());
}
+
+void cmSourceGroup::CommandFiles::Merge(const CommandFiles &r)
+{
+ std::set<std::string>::const_iterator dep = r.m_Depends.begin();
+ std::set<std::string>::const_iterator out = r.m_Outputs.begin();
+ for (;dep != r.m_Depends.end(); ++dep)
+ {
+ this->m_Depends.insert(*dep);
+ }
+ for (;out != r.m_Outputs.end(); ++out)
+ {
+ this->m_Outputs.insert(*out);
+ }
+}
+
+