mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03: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
132 B
CMake
6 lines
132 B
CMake
include(ExternalData)
|
|
set(ExternalData_URL_TEMPLATES
|
|
"file:///path/to/%(algo:0BadMap()/%(hash)"
|
|
)
|
|
ExternalData_Add_Target(Data)
|