summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-01-29 13:10:14 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-01-29 13:10:21 (GMT)
commit36bb0e32d7e3976eed424078cf5cac459651f0f1 (patch)
tree357b405adeb7b1a2635e0d774001a8d2e2ec0afa /Modules/ExternalProject.cmake
parent0e60ec7480a63ce596f3c6edf3624dc42dc87365 (diff)
parentac6a4d488446cb1e906c4b55fd055547dacd55c4 (diff)
downloadCMake-36bb0e32d7e3976eed424078cf5cac459651f0f1.zip
CMake-36bb0e32d7e3976eed424078cf5cac459651f0f1.tar.gz
CMake-36bb0e32d7e3976eed424078cf5cac459651f0f1.tar.bz2
Merge topic 'externalproject-update-refactor'
ac6a4d4884 ExternalProject: Improve robustness of update step 17c4c8b92b Tests: Prevent the noisy CMP0114 warnings in ExternalProjectUpdate test 1cb65e680d ExternalProject: Prevent the noisy detached head messages on checkout Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5389
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 29cfba9..903dd57 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -2671,6 +2671,10 @@ function(_ep_add_download_command name)
get_property(git_progress TARGET ${name} PROPERTY _EP_GIT_PROGRESS)
get_property(git_config TARGET ${name} PROPERTY _EP_GIT_CONFIG)
+ # Make checkouts quiet when checking out a git hash (this avoids the
+ # very noisy detached head message)
+ list(PREPEND git_config advice.detachedHead=false)
+
# For the download step, and the git clone operation, only the repository
# should be recorded in a configured RepositoryInfo file. If the repo
# changes, the clone script should be run again. But if only the tag