summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-06-04 17:42:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-06-04 17:42:42 (GMT)
commitfc0a916eee7068720bcaffc32ca5cc8e9414e9d1 (patch)
tree8f4eb45e612c646f6436e45891535582276bb126 /Source/cmCustomCommand.cxx
parent3154a6649a12711068e54405f70cb4b224b13443 (diff)
downloadCMake-fc0a916eee7068720bcaffc32ca5cc8e9414e9d1.zip
CMake-fc0a916eee7068720bcaffc32ca5cc8e9414e9d1.tar.gz
CMake-fc0a916eee7068720bcaffc32ca5cc8e9414e9d1.tar.bz2
ENH: allow duplicate commands with the same output to be reduced automatically to one command
Diffstat (limited to 'Source/cmCustomCommand.cxx')
-rw-r--r--Source/cmCustomCommand.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmCustomCommand.cxx b/Source/cmCustomCommand.cxx
index 5facc4c..fffa51d 100644
--- a/Source/cmCustomCommand.cxx
+++ b/Source/cmCustomCommand.cxx
@@ -65,3 +65,18 @@ void cmCustomCommand::ExpandVariables(const cmMakefile &mf)
mf.ExpandVariablesInString(*i);
}
}
+
+
+bool cmCustomCommand::IsEquivalent(const char* command,
+ const char* args)
+{
+ if(m_Command != command)
+ {
+ return false;
+ }
+ if(m_Arguments != args)
+ {
+ return false;
+ }
+ return true;
+}