Merge branch 'ca/unignore-local-installation-on-windows'
Fix build procedure for Windows that uses CMake so that it can pick up the shell interpreter from local installation location. * ca/unignore-local-installation-on-windows: cmake: support local installations of git
This commit is contained in:
commit
6d97f440e5
@ -77,7 +77,7 @@ if(USE_VCPKG)
|
|||||||
set(CMAKE_TOOLCHAIN_FILE ${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
|
set(CMAKE_TOOLCHAIN_FILE ${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
|
||||||
endif()
|
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)
|
if(NOT SH_EXE)
|
||||||
message(FATAL_ERROR "sh: shell interpreter was not found in your path, please install one."
|
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/")
|
"On Windows, you can get it as part of 'Git for Windows' install at https://gitforwindows.org/")
|
||||||
|
Loading…
Reference in New Issue
Block a user