|
|
@@ -2139,7 +2139,7 @@ int cmake::CheckBuildSystem()
|
|
|
std::string dep_newest = *dep++;
|
|
|
for (; dep != depends.end(); ++dep) {
|
|
|
int result = 0;
|
|
|
- if (this->FileTimeCache->FileTimeCompare(dep_newest, *dep, &result)) {
|
|
|
+ if (this->FileTimeCache->Compare(dep_newest, *dep, &result)) {
|
|
|
if (result < 0) {
|
|
|
dep_newest = *dep;
|
|
|
}
|
|
|
@@ -2158,7 +2158,7 @@ int cmake::CheckBuildSystem()
|
|
|
std::string out_oldest = *out++;
|
|
|
for (; out != outputs.end(); ++out) {
|
|
|
int result = 0;
|
|
|
- if (this->FileTimeCache->FileTimeCompare(out_oldest, *out, &result)) {
|
|
|
+ if (this->FileTimeCache->Compare(out_oldest, *out, &result)) {
|
|
|
if (result > 0) {
|
|
|
out_oldest = *out;
|
|
|
}
|
|
|
@@ -2175,8 +2175,7 @@ int cmake::CheckBuildSystem()
|
|
|
// If any output is older than any dependency then rerun.
|
|
|
{
|
|
|
int result = 0;
|
|
|
- if (!this->FileTimeCache->FileTimeCompare(out_oldest, dep_newest,
|
|
|
- &result) ||
|
|
|
+ if (!this->FileTimeCache->Compare(out_oldest, dep_newest, &result) ||
|
|
|
result < 0) {
|
|
|
if (verbose) {
|
|
|
std::ostringstream msg;
|
|
|
@@ -2436,7 +2435,7 @@ static bool cmakeCheckStampFile(const std::string& stampName)
|
|
|
while (cmSystemTools::GetLineFromStream(fin, dep)) {
|
|
|
int result;
|
|
|
if (!dep.empty() && dep[0] != '#' &&
|
|
|
- (!ftc.FileTimeCompare(stampDepends, dep, &result) || result < 0)) {
|
|
|
+ (!ftc.Compare(stampDepends, dep, &result) || result < 0)) {
|
|
|
// The stamp depends file is older than this dependency. The
|
|
|
// build system is really out of date.
|
|
|
std::cout << "CMake is re-running because " << stampName
|