Skip to content

Commit 2bec125

Browse files
committed
Merge pull request #3814 from carenas/appdata
cmake: support local installations of git
2 parents 197259a + 36547a7 commit 2bec125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/buildsystems/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if(USE_VCPKG)
9595
set(CMAKE_TOOLCHAIN_FILE ${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
9696
endif()
9797

98-
find_program(SH_EXE sh PATHS "C:/Program Files/Git/bin")
98+
find_program(SH_EXE sh PATHS "C:/Program Files/Git/bin" "$ENV{LOCALAPPDATA}/Programs/Git/bin")
9999
if(NOT SH_EXE)
100100
message(FATAL_ERROR "sh: shell interpreter was not found in your path, please install one."
101101
"On Windows, you can get it as part of 'Git for Windows' install at https://gitforwindows.org/")

0 commit comments

Comments
 (0)