Skip to content

Commit 983d5ea

Browse files
committed
CMake refuse to work if sh.exe is here?
1 parent 4c0a8e0 commit 983d5ea

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

appveyor.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
environment:
22
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
3-
CXX: C:\MinGW\bin\g++.exe
4-
CC: C:\MinGW\bin\gcc.exe
5-
CMAKE_CXX_COMPILER: C:\MinGW\bin\g++.exe
6-
CMAKE_CC_COMPILER: C:\MinGW\bin\gcc.exe
3+
CXX: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\g++.exe
4+
CC: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\gcc.exe
5+
CMAKE_CXX_COMPILER: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\g++.exe
6+
CMAKE_CC_COMPILER: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\gcc.exe
7+
#
8+
9+
install:
10+
# CMake refuses to generate MinGW Makefiles if sh.exe is in the Path
11+
- ps: Get-Command sh.exe -All | Remove-Item
12+
#
713

814
build_script:
915
- echo %CMAKE_CC_COMPILER%
1016
- echo %CMAKE_CXX_COMPILER%
1117
- cmake -DCMAKE_BUILD_TYPE= -G "CodeBlocks - MinGW Makefiles" jni
1218
- cmake --build . --target all -- -j 8
13-
- gradlew check
19+
- gradlew check --info
20+
#
1421

22+
before_build:
23+
- set Path=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%Path%
24+
#

0 commit comments

Comments
 (0)