diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-08-08 01:12:08 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-08-08 17:22:13 (GMT) |
commit | ec5f1c489a43456a97f849456e3c81b45bda05dd (patch) | |
tree | 2ad734f8a8ab8721c0539f1c4c6269d10b73db8b /Source/CPack | |
parent | 6b21d2bc9bbe241252b5ad30b7a8bb850518638c (diff) | |
download | CMake-ec5f1c489a43456a97f849456e3c81b45bda05dd.zip CMake-ec5f1c489a43456a97f849456e3c81b45bda05dd.tar.gz CMake-ec5f1c489a43456a97f849456e3c81b45bda05dd.tar.bz2 |
cmCryptoHash: prefer to cmSystemTools::ComputeStringMD5
The latter call is no longer post-bootstrap only since 596439b1bb
(cmCustomCommandGenerator: Add option to transform depfile, 2020-10-05)
via !5325. Convert callers to just use `cmCryptoHash` directly and
remove the bootstrap guard.
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/WiX/cmWIXSourceWriter.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CPack/WiX/cmWIXSourceWriter.cxx b/Source/CPack/WiX/cmWIXSourceWriter.cxx index 82dc019..ef6712a 100644 --- a/Source/CPack/WiX/cmWIXSourceWriter.cxx +++ b/Source/CPack/WiX/cmWIXSourceWriter.cxx @@ -5,6 +5,7 @@ #include <windows.h> #include "cmCPackGenerator.h" +#include "cmCryptoHash.h" #include "cmUuid.h" cmWIXSourceWriter::cmWIXSourceWriter(cmCPackLog* logger, @@ -134,7 +135,8 @@ std::string cmWIXSourceWriter::CreateGuidFromComponentId( { std::string guid = "*"; if (this->ComponentGuidType == CMAKE_GENERATED_GUID) { - std::string md5 = cmSystemTools::ComputeStringMD5(componentId); + cmCryptoHash hasher(cmCryptoHash::AlgoMD5); + std::string md5 = hasher.HashString(componentId); cmUuid uuid; std::vector<unsigned char> ns; guid = uuid.FromMd5(ns, md5); |