rapids_cmake_download_with_retry
Added in version v25.06.00.
Downloads a file from a URL with retry logic for handling network issues.
rapids_cmake_download_with_retry(url output_file sha256 [MAX_RETRIES <max_retries>] [RETRY_DELAY <retry_delay>])
This function will attempt to download the file multiple times if network issues occur. It verifies the download by checking the SHA256 checksum of the downloaded file. If all retries fail, it will raise a fatal error.
urlThe URL to download from.
output_fileThe path where the downloaded file should be saved.
sha256The expected SHA256 checksum of the file.
MAX_RETRIESMaximum number of retry attempts. Defaults to 10.
RETRY_DELAYDelay between retries in seconds. Defaults to 5.