mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 07:28:51 -06:00
Merge topic 'file-DOWNLOAD-existing-file-matched-message'
666b3c6f13Help: Clarify file(DOWNLOAD) behavior for existing file with same hash87a40b720afile(DOWNLOAD): Fix message for existing file with matching hash Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7599
This commit is contained in:
@@ -1121,8 +1121,11 @@ Additional options to ``DOWNLOAD`` are:
|
||||
|
||||
Verify that the downloaded content hash matches the expected value, where
|
||||
``ALGO`` is one of the algorithms supported by ``file(<HASH>)``.
|
||||
If it does not match, the operation fails with an error. It is an error to
|
||||
specify this if ``DOWNLOAD`` is not given a ``<file>``.
|
||||
If the file already exists and matches the hash, the download is skipped.
|
||||
If the file already exists and does not match the hash, the file is
|
||||
downloaded again. If after download the file does not match the hash, the
|
||||
operation fails with an error. It is an error to specify this option if
|
||||
``DOWNLOAD`` is not given a ``<file>``.
|
||||
|
||||
``EXPECTED_MD5 <value>``
|
||||
Historical short-hand for ``EXPECTED_HASH MD5=<value>``. It is an error to
|
||||
|
||||
Reference in New Issue
Block a user