diff options
author | Brad King <brad.king@kitware.com> | 2017-10-18 13:37:18 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-10-18 13:37:26 (GMT) |
commit | 0dba1db9d5d9f2c555c718acde5ec550503fae6f (patch) | |
tree | fb4a7621c4f811c124ffdce1bb5148f9c7d354ee /Tests/RunCMake/FetchContent/DownloadTwice.cmake | |
parent | 0f23697eb0625c7c0eedbe46bbb98f62b6cd89c6 (diff) | |
parent | 1e56634faa44c9a26b0e7a4f529396d761f8833d (diff) | |
download | CMake-0dba1db9d5d9f2c555c718acde5ec550503fae6f.zip CMake-0dba1db9d5d9f2c555c718acde5ec550503fae6f.tar.gz CMake-0dba1db9d5d9f2c555c718acde5ec550503fae6f.tar.bz2 |
Merge topic 'module-fetchcontent'
1e56634f FetchContent: Add tests
60e74d2f FetchContent: New module for populating content at configure time
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1306
Diffstat (limited to 'Tests/RunCMake/FetchContent/DownloadTwice.cmake')
-rw-r--r-- | Tests/RunCMake/FetchContent/DownloadTwice.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/FetchContent/DownloadTwice.cmake b/Tests/RunCMake/FetchContent/DownloadTwice.cmake new file mode 100644 index 0000000..6863c30 --- /dev/null +++ b/Tests/RunCMake/FetchContent/DownloadTwice.cmake @@ -0,0 +1,9 @@ +include(FetchContent) + +FetchContent_Declare( + t1 + DOWNLOAD_COMMAND ${CMAKE_COMMAND} -E echo "Download command executed" +) + +FetchContent_Populate(t1) +FetchContent_Populate(t1) # Triggers error |