summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FetchContent/DirectIgnoresDetails.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/DirectIgnoresDetails.cmake
parent60e74d2f19d33e5b8afc7f8834f36c5cb1d2c810 (diff)
downloadCMake-1e56634faa44c9a26b0e7a4f529396d761f8833d.zip
CMake-1e56634faa44c9a26b0e7a4f529396d761f8833d.tar.gz
CMake-1e56634faa44c9a26b0e7a4f529396d761f8833d.tar.bz2
FetchContent: Add tests
Diffstat (limited to 'Tests/RunCMake/FetchContent/DirectIgnoresDetails.cmake')
-rw-r--r--Tests/RunCMake/FetchContent/DirectIgnoresDetails.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/FetchContent/DirectIgnoresDetails.cmake b/Tests/RunCMake/FetchContent/DirectIgnoresDetails.cmake
new file mode 100644
index 0000000..0731b43
--- /dev/null
+++ b/Tests/RunCMake/FetchContent/DirectIgnoresDetails.cmake
@@ -0,0 +1,12 @@
+include(FetchContent)
+
+FetchContent_Declare(
+ t1
+ DOWNLOAD_COMMAND ${CMAKE_COMMAND} -E echo "Saved details used"
+)
+
+# No QUIET option given, so command output will be shown
+FetchContent_Populate(
+ t1
+ DOWNLOAD_COMMAND ${CMAKE_COMMAND} -E echo "Local details used"
+)