summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-15 09:41:04 -0400
committerBrad King <brad.king@kitware.com>2015-10-15 09:41:04 -0400
commit7d94947a68e76c39cfbeaa14eeb69050afe1363d (patch)
tree227f3a73646827d3a591fd4bad082c18990512c0
parentbe616c189d969f9f984356bd052e3b5f39290771 (diff)
parentc9e0173e6fb3ddefb43edaa5235eef2c7b31ad67 (diff)
downloadcmake-7d94947a68e76c39cfbeaa14eeb69050afe1363d.tar.gz
Merge branch 'ExternalProject-fix-git-version' into release
-rw-r--r--Modules/ExternalProject.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 90ceedf4c8..c822bdb973 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -1731,6 +1731,7 @@ function(_ep_add_download_command name)
--non-interactive ${svn_trust_cert_args} ${svn_user_pw_args} ${src_name})
list(APPEND depends ${stamp_dir}/${name}-svninfo.txt)
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 clone of ${name}")
@@ -1739,7 +1740,7 @@ function(_ep_add_download_command name)
# The git submodule update '--recursive' flag requires git >= v1.6.5
#
if(GIT_VERSION_STRING VERSION_LESS 1.6.5)
- message(FATAL_ERROR "error: git version 1.6.5 or later required for 'git submodule update --recursive': git_version='${git_version}'")
+ message(FATAL_ERROR "error: git version 1.6.5 or later required for 'git submodule update --recursive': GIT_VERSION_STRING='${GIT_VERSION_STRING}'")
endif()
get_property(git_tag TARGET ${name} PROPERTY _EP_GIT_TAG)