summaryrefslogtreecommitdiff
path: root/Source/cmDepends.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-03-14 17:15:04 +0100
committerSebastian Holtermann <sebholt@xwmw.org>2019-03-18 15:09:11 +0100
commita6d75a1ce0daec9c60ed850163f76416de35edb7 (patch)
tree4939d9f5e68a3fb93d0a25a64c6b7e3f243c50eb /Source/cmDepends.cxx
parent216416219ae438ec5e93a1e125298fa0b5fd64d9 (diff)
downloadcmake-a6d75a1ce0daec9c60ed850163f76416de35edb7.tar.gz
Substitute FileComparison in variable names with FileTimeCache
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r--Source/cmDepends.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx
index 4e97af2d4b..1bfb370661 100644
--- a/Source/cmDepends.cxx
+++ b/Source/cmDepends.cxx
@@ -177,8 +177,8 @@ bool cmDepends::CheckDependencies(
if (dependerExists) {
// The dependee and depender both exist. Compare file times.
int result = 0;
- if ((!this->FileComparison->FileTimeCompare(depender, dependee,
- &result) ||
+ if ((!this->FileTimeCache->FileTimeCompare(depender, dependee,
+ &result) ||
result < 0)) {
// The depender is older than the dependee.
regenerate = true;
@@ -195,8 +195,8 @@ bool cmDepends::CheckDependencies(
// The dependee exists, but the depender doesn't. Regenerate if the
// internalDepends file is older than the dependee.
int result = 0;
- if ((!this->FileComparison->FileTimeCompare(internalDependsFileName,
- dependee, &result) ||
+ if ((!this->FileTimeCache->FileTimeCompare(internalDependsFileName,
+ dependee, &result) ||
result < 0)) {
// The depends-file is older than the dependee.
regenerate = true;