Skip to content

Commit

Permalink
CMake refuse to work if sh.exe is here?
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Apr 16, 2017
1 parent 4c0a8e0 commit 983d5ea
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
environment:
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
CXX: C:\MinGW\bin\g++.exe
CC: C:\MinGW\bin\gcc.exe
CMAKE_CXX_COMPILER: C:\MinGW\bin\g++.exe
CMAKE_CC_COMPILER: C:\MinGW\bin\gcc.exe
CXX: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\g++.exe
CC: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\gcc.exe
CMAKE_CXX_COMPILER: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\g++.exe
CMAKE_CC_COMPILER: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\gcc.exe
#

install:
# CMake refuses to generate MinGW Makefiles if sh.exe is in the Path
- ps: Get-Command sh.exe -All | Remove-Item
#

build_script:
- echo %CMAKE_CC_COMPILER%
- echo %CMAKE_CXX_COMPILER%
- cmake -DCMAKE_BUILD_TYPE= -G "CodeBlocks - MinGW Makefiles" jni
- cmake --build . --target all -- -j 8
- gradlew check
- gradlew check --info
#

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

0 comments on commit 983d5ea

Please sign in to comment.