Przeglądaj źródła

ExternalProject: Fix git stash not using "--all" option

GIT_VERSION_STRING is unset in _ep_write_gitupdate_script(), hence
git stash is not being called with the "--all" option, even if Git
is new enough to support this.
Christian Fetzer 9 lat temu
rodzic
commit
2bc981e669
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      Modules/ExternalProject.cmake

+ 2 - 0
Modules/ExternalProject.cmake

@@ -2021,6 +2021,8 @@ function(_ep_add_update_command name)
       --non-interactive ${svn_trust_cert_args} ${svn_user_pw_args})
     set(always 1)
   elseif(git_repository)
+    unset(CMAKE_MODULE_PATH) # Use CMake builtin find module
+    find_package(Git QUIET)
     if(NOT GIT_EXECUTABLE)
       message(FATAL_ERROR "error: could not find git for fetch of ${name}")
     endif()