ecbuild_download_resourceΒΆ

Download a file from a given URL and save to FILE at configure time.

ecbuild_download_resource( FILE URL )

curl or wget is required (curl is preferred if available).

The default timeout is 30 seconds, which can be overridden with ECBUILD_DOWNLOAD_TIMEOUT. Downloads are by default only tried once, use ECBUILD_DOWNLOAD_RETRIES to set the number of retries.