Browse Source

Merge topic 'ExternalProject-avoid-extra-checkout'

627fc5b44f ExternalProject: Avoid unnecessary checkout on clone

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3626
Brad King 6 years ago
parent
commit
3cf89d18c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/ExternalProject.cmake

+ 1 - 1
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")