mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
Allow URL templates to contain a %(algo:<key>) placeholder that is replaced by mapping the canonical hash algorithm name through a map defined by the <key>. Extend the Module.ExternalData test to cover the behavior. Extend the RunCMake.ExternalData test to cover error cases.
6 lines
124 B
CMake
6 lines
124 B
CMake
include(ExternalData)
|
|
set(ExternalData_URL_TEMPLATES
|
|
"file:///path/to/%(algo:)/%(hash)"
|
|
)
|
|
ExternalData_Add_Target(Data)
|