CMake/Tests/RunCMake/ExternalData/BadAlgoMap1.cmake
Brad King f7f4ca55bd ExternalData: Add support for custom algorithm-to-URL mapping
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.
2015-02-25 08:28:05 -05:00

6 lines
124 B
CMake

include(ExternalData)
set(ExternalData_URL_TEMPLATES
"file:///path/to/%(algo:)/%(hash)"
)
ExternalData_Add_Target(Data)