summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FetchContent/FirstDetailsWin.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2017-09-24 09:50:58 (GMT)
committerCraig Scott <craig.scott@crascit.com>2017-10-16 21:10:19 (GMT)
commit1e56634faa44c9a26b0e7a4f529396d761f8833d (patch)
treeb47226609b179c3659d0f27355a37881937c91a3 /Tests/RunCMake/FetchContent/FirstDetailsWin.cmake
parent60e74d2f19d33e5b8afc7f8834f36c5cb1d2c810 (diff)
downloadCMake-1e56634faa44c9a26b0e7a4f529396d761f8833d.zip
CMake-1e56634faa44c9a26b0e7a4f529396d761f8833d.tar.gz
CMake-1e56634faa44c9a26b0e7a4f529396d761f8833d.tar.bz2
FetchContent: Add tests
Diffstat (limited to 'Tests/RunCMake/FetchContent/FirstDetailsWin.cmake')
-rw-r--r--Tests/RunCMake/FetchContent/FirstDetailsWin.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/FetchContent/FirstDetailsWin.cmake b/Tests/RunCMake/FetchContent/FirstDetailsWin.cmake
new file mode 100644
index 0000000..208b12d
--- /dev/null
+++ b/Tests/RunCMake/FetchContent/FirstDetailsWin.cmake
@@ -0,0 +1,16 @@
+include(FetchContent)
+
+# Need to see the download command output
+set(FETCHCONTENT_QUIET OFF)
+
+FetchContent_Declare(
+ t1
+ DOWNLOAD_COMMAND ${CMAKE_COMMAND} -E echo "First details used"
+)
+
+FetchContent_Declare(
+ t1
+ DOWNLOAD_COMMAND ${CMAKE_COMMAND} -E echo "Second details used"
+)
+
+FetchContent_Populate(t1)