зеркало из https://github.com/microsoft/git.git
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 <carenas@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Родитель
5fe2bbe501
Коммит
670954521b
|
@ -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/")
|
||||||
|
|
Загрузка…
Ссылка в новой задаче