Skip to content

Commit

Permalink
Try to rip C:\Program Files\Git\usr\bin from the path.
Browse files Browse the repository at this point in the history
When building with MinGW, that causes the shell (Bourne?) that Git
"helpfully" provides to be found, and CMake says "that won't work" and
fails.
  • Loading branch information
guyharris committed Nov 5, 2019
1 parent ac681ef commit 085bf2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ build_script:
- md build
- cd build
- if "%GENERATOR%"=="MinGW Makefiles" set PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0;%PATH%
# Workaround for CMake not wanting sh.exe on PATH for MinGW
- if "%GENERATOR%"=="MinGW Makefiles" set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- cmake -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" ..
- if NOT "%GENERATOR%"=="MinGW Makefiles" msbuild /m /nologo /p:Configuration=Release pcap.sln
- if "%GENERATOR%"=="MinGW Makefiles" mingw32-make

0 comments on commit 085bf2e

Please sign in to comment.