summaryrefslogtreecommitdiffstats
path: root/Source/cmFileTimeComparison.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-08 17:26:44 (GMT)
committerBrad King <brad.king@kitware.com>2015-10-08 17:26:44 (GMT)
commit265fb0cdc72fc46347ae0b8964078ca6d0a978e1 (patch)
tree02f9cf4b527f2663046099d2cac527c6cd88ebc1 /Source/cmFileTimeComparison.cxx
parent8083285d1bd5ecc31afa5fa689a9a4ca13ca8bb9 (diff)
downloadCMake-265fb0cdc72fc46347ae0b8964078ca6d0a978e1.zip
CMake-265fb0cdc72fc46347ae0b8964078ca6d0a978e1.tar.gz
CMake-265fb0cdc72fc46347ae0b8964078ca6d0a978e1.tar.bz2
cmFileTimeComparison: Update for lack of cmsys_STAT_HAS_ST_MTIM
The KWSys Configure.hxx header no longer exposes this value. Take the value from the KWSys try compile result variable instead.
Diffstat (limited to 'Source/cmFileTimeComparison.cxx')
-rw-r--r--Source/cmFileTimeComparison.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFileTimeComparison.cxx b/Source/cmFileTimeComparison.cxx
index 13e2a66..8d5e08d 100644
--- a/Source/cmFileTimeComparison.cxx
+++ b/Source/cmFileTimeComparison.cxx
@@ -148,7 +148,7 @@ int cmFileTimeComparisonInternal::Compare(cmFileTimeComparison_Type* s1,
cmFileTimeComparison_Type* s2)
{
#if !defined(_WIN32) || defined(__CYGWIN__)
-# if cmsys_STAT_HAS_ST_MTIM
+# if CMake_STAT_HAS_ST_MTIM
// Compare using nanosecond resolution.
if(s1->st_mtim.tv_sec < s2->st_mtim.tv_sec)
{
@@ -190,7 +190,7 @@ bool cmFileTimeComparisonInternal::TimesDiffer(cmFileTimeComparison_Type* s1,
cmFileTimeComparison_Type* s2)
{
#if !defined(_WIN32) || defined(__CYGWIN__)
-# if cmsys_STAT_HAS_ST_MTIM
+# if CMake_STAT_HAS_ST_MTIM
// Times are integers in units of 1ns.
long long bil = 1000000000;
long long t1 = s1->st_mtim.tv_sec * bil + s1->st_mtim.tv_nsec;