summaryrefslogtreecommitdiffstats
path: root/Modules/FetchContent
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2019-01-14 11:56:19 (GMT)
committerCraig Scott <craig.scott@crascit.com>2019-01-14 12:32:18 (GMT)
commit2119c33b7e7b5fc348c0b4b24e402bcacb18d5db (patch)
tree3d9978c37ad073198673180cb3fa6def0c6ccfd9 /Modules/FetchContent
parentdd90811bbf61fb9066f84463e9817b94324c105f (diff)
downloadCMake-2119c33b7e7b5fc348c0b4b24e402bcacb18d5db.zip
CMake-2119c33b7e7b5fc348c0b4b24e402bcacb18d5db.tar.gz
CMake-2119c33b7e7b5fc348c0b4b24e402bcacb18d5db.tar.bz2
FetchContent: Give access to the terminal for download and update
A main scenario where this is needed is when a git operation needs the password to a private key and asks for it on the console. Without this change, such operations can appear to hang indefinitely with no prompt if QUIET is in effect (which it is by default). Another scenario this addresses is when progress of a download or update should be shown. Without this change, all such progress is buffered with some generators and will only be shown at the end, which defeats the purpose of logging any progress to begin with. Relates: #18238
Diffstat (limited to 'Modules/FetchContent')
-rw-r--r--Modules/FetchContent/CMakeLists.cmake.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FetchContent/CMakeLists.cmake.in b/Modules/FetchContent/CMakeLists.cmake.in
index 9a7a771..0095b11 100644
--- a/Modules/FetchContent/CMakeLists.cmake.in
+++ b/Modules/FetchContent/CMakeLists.cmake.in
@@ -18,4 +18,6 @@ ExternalProject_Add(${contentName}-populate
BUILD_COMMAND ""
INSTALL_COMMAND ""
TEST_COMMAND ""
+ USES_TERMINAL_DOWNLOAD YES
+ USES_TERMINAL_UPDATE YES
)