summaryrefslogtreecommitdiff
path: root/Source/cmFileTimeComparison.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-03 00:01:38 -0500
committerBrad King <brad.king@kitware.com>2008-01-03 00:01:38 -0500
commit38ed52fe145f6db2bd82e49308af2ba526f4e50a (patch)
tree4a394e48088544566dd8ea3dd5aecfdcebc79e5a /Source/cmFileTimeComparison.h
parent8ca81ae7bffcabc774963d9fbab00354d58866e6 (diff)
downloadcmake-38ed52fe145f6db2bd82e49308af2ba526f4e50a.tar.gz
ENH: Add method cmFileTimeComparison::FileTimesDiffer to check if file times differ by 1 second or more.
Diffstat (limited to 'Source/cmFileTimeComparison.h')
-rw-r--r--Source/cmFileTimeComparison.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmFileTimeComparison.h b/Source/cmFileTimeComparison.h
index 5da97db72c..8067e1d51b 100644
--- a/Source/cmFileTimeComparison.h
+++ b/Source/cmFileTimeComparison.h
@@ -40,6 +40,12 @@ public:
*/
bool FileTimeCompare(const char* f1, const char* f2, int* result);
+ /**
+ * Compare file modification times. Return true unless both files
+ * exist and have modification times less than 1 second apart.
+ */
+ bool FileTimesDiffer(const char* f1, const char* f2);
+
protected:
cmFileTimeComparisonInternal* Internals;