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/cmInstallExportGenerator.cxx | |
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/cmInstallExportGenerator.cxx')
-rw-r--r-- | Source/cmInstallExportGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmInstallExportGenerator.cxx b/Source/cmInstallExportGenerator.cxx index 32196d3..71d5471 100644 --- a/Source/cmInstallExportGenerator.cxx +++ b/Source/cmInstallExportGenerator.cxx @@ -8,6 +8,7 @@ #include <cm/memory> +#include "cmCryptoHash.h" #ifndef CMAKE_BOOTSTRAP # include "cmExportInstallAndroidMKGenerator.h" #endif @@ -64,11 +65,10 @@ std::string cmInstallExportGenerator::TempDirCalculate() const return path; } -#ifndef CMAKE_BOOTSTRAP + cmCryptoHash hasher(cmCryptoHash::AlgoMD5); path += '/'; // Replace the destination path with a hash to keep it short. - path += cmSystemTools::ComputeStringMD5(this->Destination); -#endif + path += hasher.HashString(this->Destination); return path; } |