Reputation: 3717
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
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