Ver código fonte

Patch should be in the path, but sh should not.
Rename sh.exe to _sh.exe.

See #278

bel 9 anos atrás
pai
commit
8d6e9d1b1d
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      appveyor.yml

+ 3 - 1
appveyor.yml

@@ -109,7 +109,8 @@ before_build:
   # "sh.exe was found in your PATH, here: C:/Program Files/Git/usr/bin/sh.exe"
   # and the MinGW build will not work (the Visual Studio build does not care).
   # See http://help.appveyor.com/discussions/problems/3193-cmake-building-for-mingw-issue-with-git-shexe
-  - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
+  # - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
+  - ren "C:\Program Files\Git\usr\bin\sh.exe" _sh.exe
   # Set up mingw commands
   - if "%compiler_name%"=="gcc" (set "generator=MinGW Makefiles")
   - if "%compiler_name%"=="gcc" (set "build=mingw32-make -j4")
@@ -201,6 +202,7 @@ cache:
   - C:\mingw-builds -> mingw.cmd
   - C:\third-party -> **\CMakeLists.txt
   - C:\ssl
+  - C:\git
 
 artifacts:
   - path: dist\*