MCPcopy Create free account
hub / github.com/Kitware/CMake / Compare

Method Compare

Source/cmFileTimeCache.cxx:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool 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
53bool cmFileTimeCache::DifferS(std::string const& f1, std::string const& f2)
54{

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.95

Tested by

no test coverage detected