diff options
author | Brad King <brad.king@kitware.com> | 2015-01-13 15:03:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-01-15 15:48:09 (GMT) |
commit | 0fe4d8bb3b9e8074f7efd95ae92fa32fe29a2c02 (patch) | |
tree | 57fe3394bf95b2c1ccf758d568cb366259006213 /Tests/RunCMake/ExternalData/BadCustom2.cmake | |
parent | 945571db747fd09036d0efd55b538dd4b3c8b874 (diff) | |
download | CMake-0fe4d8bb3b9e8074f7efd95ae92fa32fe29a2c02.zip CMake-0fe4d8bb3b9e8074f7efd95ae92fa32fe29a2c02.tar.gz CMake-0fe4d8bb3b9e8074f7efd95ae92fa32fe29a2c02.tar.bz2 |
ExternalData: Add support for custom download scripts
Add support for a special URL template to map the fetch operation
to a project-specified .cmake script insead of using file(DOWNLOAD).
Extend the Module.ExternalData test to cover the behavior.
Extend the RunCMake.ExternalData test to cover error cases.
Diffstat (limited to 'Tests/RunCMake/ExternalData/BadCustom2.cmake')
-rw-r--r-- | Tests/RunCMake/ExternalData/BadCustom2.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalData/BadCustom2.cmake b/Tests/RunCMake/ExternalData/BadCustom2.cmake new file mode 100644 index 0000000..1ed7646 --- /dev/null +++ b/Tests/RunCMake/ExternalData/BadCustom2.cmake @@ -0,0 +1,5 @@ +include(ExternalData) +set(ExternalData_URL_TEMPLATES + "ExternalDataCustomScript:///%(algo)/%(hash)" + ) +ExternalData_Add_Target(Data) |