mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
Rename cmFileTimeCache::FileTimesDiffer to cmFileTimeCache::DifferS
This commit is contained in:
1 parent
a6d75a1ce0
commit
98d4846953
3 files changed
+3
-4
No files matched your search
@@ -532,7 +532,7 @@ bool cmFileCopier::InstallFile(const std::string& fromFile,
|
||||
bool copy = true;
|
||||
if (!this->Always) {
|
||||
// If both files exist with the same time do not copy.
|
||||
if (!this->FileTimes.FileTimesDiffer(fromFile, toFile)) {
|
||||
if (!this->FileTimes.DifferS(fromFile, toFile)) {
|
||||
copy = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,8 +44,7 @@ bool cmFileTimeCache::FileTimeCompare(std::string const& f1,
|
||||
return false;
|
||||
}
|
||||
|
||||
bool cmFileTimeCache::FileTimesDiffer(std::string const& f1,
|
||||
std::string const& f2)
|
||||
bool cmFileTimeCache::DifferS(std::string const& f1, std::string const& f2)
|
||||
{
|
||||
// Get the modification time for each file.
|
||||
cmFileTime ft1, ft2;
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
* @return true unless both files exist and have modification times less
|
||||
* than 1 second apart.
|
||||
*/
|
||||
bool FileTimesDiffer(std::string const& f1, std::string const& f2);
|
||||
bool DifferS(std::string const& f1, std::string const& f2);
|
||||
|
||||
private:
|
||||
typedef std::unordered_map<std::string, cmFileTime> FileTimeMap;
|
||||
|
||||
Reference in new issue
Block a user