summaryrefslogtreecommitdiff
path: root/contrib/buildsystems/CMakeLists.txt
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2020-09-28 21:09:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-09-28 22:11:39 (GMT)
commit72b6eeb81b163d3b9e4e9546f8041160b2d759c9 (patch)
tree8f1546a6e4799f8e2467fd1230828ee60392cab3 /contrib/buildsystems/CMakeLists.txt
parent3eccc7b99d4f47991ca3a647ad27680a45a82517 (diff)
downloadgit-72b6eeb81b163d3b9e4e9546f8041160b2d759c9.zip
git-72b6eeb81b163d3b9e4e9546f8041160b2d759c9.tar.gz
git-72b6eeb81b163d3b9e4e9546f8041160b2d759c9.tar.bz2
cmake: do find Git for Windows' shell interpreter
By default, Git for Windows does not install its `sh.exe` into the `PATH`. However, our current `CMakeLists.txt` expects to find a shell interpreter in the `PATH`. So let's fall back to looking in the default location where Git for Windows _does_ install a relatively convenient `sh.exe`: `C:\Program Files\Git\bin\sh.exe` Helped-by: Øystein Walle <oystwa@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/buildsystems/CMakeLists.txt')
-rw-r--r--contrib/buildsystems/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/buildsystems/CMakeLists.txt b/contrib/buildsystems/CMakeLists.txt
index 5007f17..1847a6f 100644
--- a/contrib/buildsystems/CMakeLists.txt
+++ b/contrib/buildsystems/CMakeLists.txt
@@ -41,7 +41,7 @@ cmake_minimum_required(VERSION 3.14)
#set the source directory to root of git
set(CMAKE_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/../..)
-find_program(SH_EXE sh)
+find_program(SH_EXE sh PATHS "C:/Program Files/Git/bin")
if(NOT SH_EXE)
message(FATAL_ERROR "sh: shell interpreter was not found in your path, please install one."
"On Windows, you can get it as part of 'Git for Windows' install at https://gitforwindows.org/")