appveyor.cmd: Disable gtest in MinGW-w64 builds for now.

In file included from C:/projects/rvthtool/extlib/googletest/googletest/include/gtest/internal/gtest-internal.h:40:0,
                 from C:/projects/rvthtool/extlib/googletest/googletest/include/gtest/gtest.h:58,
                 from C:\projects\rvthtool\extlib\googletest\googletest\src\gtest-all.cc:39:
C:/projects/rvthtool/extlib/googletest/googletest/include/gtest/internal/gtest-port.h:1782:3: error: 'AutoHandle' does not name a type
   AutoHandle thread_;
   ^~~~~~~~~~
This commit is contained in:
David Korth 2020-06-20 18:08:09 -04:00
parent 013c2c939f
commit ea1142abbc

View File

@ -25,7 +25,8 @@ if "%platform%" == "x86" set MINGW64_ROOT=C:/mingw-w64/i686-6.3.0-posix-dwarf-rt
if "%platform%" == "x64" set MINGW64_ROOT=C:/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64
set "PATH=%MINGW64_ROOT%\bin;%PATH%"
:: FIXME: gtest is failing on AppVeyor because "AutoHandle" does not name a type.
mkdir build
cd build
cmake .. -G "MinGW Makefiles" -DCMAKE_PREFIX_PATH=%MINGW64_ROOT% -DCMAKE_C_COMPILER=%MINGW64_ROOT%/bin/gcc.exe -DCMAKE_CXX_COMPILER=%MINGW64_ROOT%/bin/g++.exe -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_TESTING=ON
cmake .. -G "MinGW Makefiles" -DCMAKE_PREFIX_PATH=%MINGW64_ROOT% -DCMAKE_C_COMPILER=%MINGW64_ROOT%/bin/gcc.exe -DCMAKE_CXX_COMPILER=%MINGW64_ROOT%/bin/g++.exe -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_TESTING=OFF
exit /b %ERRORLEVEL%