Skip to content

Commit 44be57b

Browse files
carenasdscho
authored andcommitted
cmake: support local installations of git
At least in systems where the user is local and not an administrator git will install in a subdirectory of %APPDATALOCAL%, so it makes sense to also look there for the shell needed by the cmake integration with Visual Studio. Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent c9e4b45 commit 44be57b

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
@@ -77,7 +77,7 @@ if(USE_VCPKG)
7777
set(CMAKE_TOOLCHAIN_FILE ${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
7878
endif()
7979

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

0 commit comments

Comments
 (0)