Merge topic 'ExternalProject-fix-stash-all'

2bc981e6 ExternalProject: Fix git stash not using "--all" option
This commit is contained in:
Brad King 2016-05-24 13:53:58 -04:00 committed by CMake Topic Stage
commit 185be83815
1 changed files with 2 additions and 0 deletions

View File

@ -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()