summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackDebGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-08-08 01:18:10 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-08-08 17:23:55 (GMT)
commit0abde043d285ff34c374a49c0211aa4b375e4c9a (patch)
tree297d8b6fdb3e2c20a4aea863113d0014b2f3e9a1 /Source/CPack/cmCPackDebGenerator.cxx
parent4d5198a986902588271307a3837f08999c139368 (diff)
downloadCMake-0abde043d285ff34c374a49c0211aa4b375e4c9a.zip
CMake-0abde043d285ff34c374a49c0211aa4b375e4c9a.tar.gz
CMake-0abde043d285ff34c374a49c0211aa4b375e4c9a.tar.bz2
cmCryptoHash: prefer to cmSystemTools::ComputeFileHash
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index 34c56c9..8d16428 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -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);