diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-08-26 11:13:10 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-26 11:13:10 -0700 |
commit | 2794e813c64b7f8a4808246f1ae4448e8a26b165 (patch) | |
tree | 961bb966213eb9039ac8e59bc9ec4a2a7f6abf7c | |
parent | ad60dddad72dfb8367bd695028b5b8dc6c33661b (diff) | |
parent | 476e54b1c604c7e0bb5265e8995e53aad1a13877 (diff) |
Merge branch 'ca/unignore-local-installation-on-windows' into maint
Fix build procedure for Windows that uses CMake so that it can pick
up the shell interpreter from local installation location.
source: <pull.1304.git.1658912756815.gitgitgadget@gmail.com>
* ca/unignore-local-installation-on-windows:
cmake: support local installations of git
-rw-r--r-- | contrib/buildsystems/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/buildsystems/CMakeLists.txt b/contrib/buildsystems/CMakeLists.txt index 1b23f2440d..2237109b57 100644 --- a/contrib/buildsystems/CMakeLists.txt +++ b/contrib/buildsystems/CMakeLists.txt @@ -77,7 +77,7 @@ if(USE_VCPKG) set(CMAKE_TOOLCHAIN_FILE ${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file") endif() -find_program(SH_EXE sh PATHS "C:/Program Files/Git/bin") +find_program(SH_EXE sh PATHS "C:/Program Files/Git/bin" "$ENV{LOCALAPPDATA}/Programs/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/") |