mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 05:11:15 -06:00
Merge topic 'fbuild_fix_hash_collision'
4b74d6c5b7 FASTBuild: fix possible collision in exec's name
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11212
This commit is contained in:
@@ -155,7 +155,7 @@ std::string cmFastbuildTargetGenerator::GetCustomCommandTargetName(
|
||||
extras += std::to_string(static_cast<int>(step));
|
||||
|
||||
cmCryptoHash hash(cmCryptoHash::AlgoSHA256);
|
||||
targetName += "-" + hash.HashString(extras).substr(0, 7);
|
||||
targetName += "-" + hash.HashString(extras).substr(0, 14);
|
||||
|
||||
return targetName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user