DikobrAz
DikobrAz

Reputation: 3717

CMake ExternalProjectAdd multiple download URLs

Is there a way to specify multiple URLs for ExternalProjectAdd in CMake? So if one is unavailable it will download from another.

Upvotes: 2

Views: 489

Answers (1)

Hilborn
Hilborn

Reputation: 754

You can specify multiple URLs to ExternalProject_Add since CMake v3.7.0:

ExternalProject_Add(my_project
    URL http://mirror1/file.tar.gz http://mirror2/file.tar.gz ...
    URL_MD5 ...
    ...)

Upvotes: 5

Related Questions