diff options
author | Brad King <brad.king@kitware.com> | 2008-01-03 05:01:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-03 05:01:38 (GMT) |
commit | 38ed52fe145f6db2bd82e49308af2ba526f4e50a (patch) | |
tree | 4a394e48088544566dd8ea3dd5aecfdcebc79e5a /Source/cmFileTimeComparison.h | |
parent | 8ca81ae7bffcabc774963d9fbab00354d58866e6 (diff) | |
download | CMake-38ed52fe145f6db2bd82e49308af2ba526f4e50a.zip CMake-38ed52fe145f6db2bd82e49308af2ba526f4e50a.tar.gz CMake-38ed52fe145f6db2bd82e49308af2ba526f4e50a.tar.bz2 |
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 5da97db..8067e1d 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; |