Skip to content

file(DOWNLOAD): Add options to download a range

Sometimes when working with big binary files it's convenient to download only parts of them, for example, it's useful only to get the first 100 MB out of giant files (like this one).

Libcurl, used by CMake to download files, allows users to specify the download range.

This merge request adds support for two extra options at file(DOWNLOAD : RANGE_START and RANGE_END. They should provide a convenient way to use all of the range's functionality from libcurl.

Topic-rename: file-download-range

Edited by Brad King

Merge request reports