diff options
author | Brad King <brad.king@kitware.com> | 2008-01-03 00:01:38 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-03 00:01:38 -0500 |
commit | 38ed52fe145f6db2bd82e49308af2ba526f4e50a (patch) | |
tree | 4a394e48088544566dd8ea3dd5aecfdcebc79e5a /Source/cmFileTimeComparison.h | |
parent | 8ca81ae7bffcabc774963d9fbab00354d58866e6 (diff) | |
download | cmake-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.h | 6 |
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; |