| 35 | } |
| 36 | |
| 37 | bool cmFileTimeCache::Compare(std::string const& f1, std::string const& f2, |
| 38 | int* result) |
| 39 | { |
| 40 | // Get the modification time for each file. |
| 41 | cmFileTime ft1; |
| 42 | cmFileTime ft2; |
| 43 | if (this->Load(f1, ft1) && this->Load(f2, ft2)) { |
| 44 | // Compare the two modification times. |
| 45 | *result = ft1.Compare(ft2); |
| 46 | return true; |
| 47 | } |
| 48 | // No comparison available. Default to the same time. |
| 49 | *result = 0; |
| 50 | return false; |
| 51 | } |
| 52 | |
| 53 | bool cmFileTimeCache::DifferS(std::string const& f1, std::string const& f2) |
| 54 | { |