mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 13:48:33 -05:00
Merge topic 'file-download-range'
231872ddb0 file(DOWNLOAD): Add options to download a range
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !6986
This commit is contained in:
@@ -1128,6 +1128,18 @@ Additional options to ``DOWNLOAD`` are:
|
||||
Historical short-hand for ``EXPECTED_HASH MD5=<value>``. It is an error to
|
||||
specify this if ``DOWNLOAD`` is not given a ``<file>``.
|
||||
|
||||
``RANGE_START <value>``
|
||||
.. versionadded:: 3.24
|
||||
|
||||
Offset of the start of the range in file in bytes. Could be omitted to
|
||||
download up to the specified ``RANGE_END``.
|
||||
|
||||
``RANGE_END <value>``
|
||||
.. versionadded:: 3.24
|
||||
|
||||
Offset of the end of the range in file in bytes. Could be omitted to
|
||||
download everything from the specified ``RANGE_START`` to the end of file.
|
||||
|
||||
Locking
|
||||
^^^^^^^
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
file-download-range
|
||||
-------------------
|
||||
|
||||
* Add the fields ``RANGE_START`` and ``RANGE_END`` to ``file(DOWNLOAD)``.
|
||||
Those fields provide a convenient way to specify the range, passed to the
|
||||
libcurl, which can be useful for downloading parts of big binary files.
|
||||
Reference in New Issue
Block a user