[docs] CMake command docs say to use 0 for missing SHA512 #18611
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the pull request
What does your PR fix?
This is a follow-up to the PR closing [vcpkg_download_distfile] Add condition for padding the SHA #18459 which made 0 the only value to use for
SHA512
arguments which would result in showing the hash that vcpkg calculated when it didn't match.Some of the remaining documentation for vcpkg's CMake commands still directs users to put the value 1 when they do not yet know the correct hash. This PR fixes the documentation in those places that I was able to identify.
It also adds the instructions about using the value 0 to the documentation for
vcpkg_from_sourceforge
because it did not have that line before. I believe this is correct because the code for that command uses the samevcpkg_download_distfile
function that was changed, but I have not tested it myself.