summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-31 15:46:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-07-31 15:47:09 (GMT)
commit3cf89d18c3f3f2e0fc7478ccd1c483382cdf0a3d (patch)
treee193f6e4657d5efeccb5a7d7df22b2a456586ce0 /Modules
parentac7ac46fce54ce263dc32cdd12775a12a95814b7 (diff)
parent627fc5b44f7c5fab2d6bc81ae3a0d9b06cb9f3bf (diff)
downloadCMake-3cf89d18c3f3f2e0fc7478ccd1c483382cdf0a3d.zip
CMake-3cf89d18c3f3f2e0fc7478ccd1c483382cdf0a3d.tar.gz
CMake-3cf89d18c3f3f2e0fc7478ccd1c483382cdf0a3d.tar.bz2
Merge topic 'ExternalProject-avoid-extra-checkout'
627fc5b44f ExternalProject: Avoid unnecessary checkout on clone Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3626
Diffstat (limited to 'Modules')
-rw-r--r--Modules/ExternalProject.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 14fc231..e55ed46 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -1079,7 +1079,7 @@ function(_ep_write_gitclone_script script_filename source_dir git_EXECUTABLE git
message(FATAL_ERROR "Tag for git checkout should not be empty.")
endif()
- set(git_clone_options)
+ set(git_clone_options "--no-checkout")
if(git_shallow)
if(NOT GIT_VERSION_STRING VERSION_LESS 1.7.10)
list(APPEND git_clone_options "--depth 1 --no-single-branch")