cmCryptoHash: prefer to cmSystemTools::ComputeFileHash

This commit is contained in:
Ben Boeckel
2023-08-07 21:18:10 -04:00
parent 4d5198a986
commit 0abde043d2
3 changed files with 9 additions and 11 deletions
+2 -2
View File
@@ -290,8 +290,8 @@ std::string DebGenerator::generateMD5File() const
continue;
}
std::string output =
cmSystemTools::ComputeFileHash(file, cmCryptoHash::AlgoMD5);
cmCryptoHash hasher(cmCryptoHash::AlgoMD5);
std::string output = hasher.HashFile(file);
if (output.empty()) {
cmCPackLogger(cmCPackLog::LOG_ERROR,
"Problem computing the md5 of " << file << std::endl);