From: Guy Harris Date: Fri, 5 Jun 2020 20:40:29 +0000 (-0700) Subject: appveyor: clean up. X-Git-Tag: libpcap-1.10-bp~109 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/ecfe4d8e8e50536a8ef017f532640c83604c31d3 appveyor: clean up. Get rid of the debugging printouts. To decide whether to pass cmake the -A flag or not, check whether the PLATFORM environment variable is defined, rather than checking for a particular generator. --- diff --git a/.appveyor.yml b/.appveyor.yml index 9e338b3e..15e1824e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -103,11 +103,7 @@ build_script: # that breaks MinGW builds - CMake checks for that and fails in the # configuration stage - if "%GENERATOR%"=="MinGW Makefiles" set PATH=%PATH:C:\Program Files\Git\usr\bin;=% - # Debugging stuff - - cmake --version - - dir "C:\Program Files (x86)" - - dir "C:\Program Files" - - if NOT "%GENERATOR%"=="Visual Studio 16 2019" cmake %AIRPCAP% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DAirPcap_ROOT=c:\projects\libpcap\Win32\Airpcap_Devpack -G"%GENERATOR%" .. - - if "%GENERATOR%"=="Visual Studio 16 2019" cmake %AIRPCAP% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DAirPcap_ROOT=c:\projects\libpcap\Win32\Airpcap_Devpack -G"%GENERATOR%" -A %PLATFORM% .. + - if NOT DEFINED PLATFORM cmake %AIRPCAP% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DAirPcap_ROOT=c:\projects\libpcap\Win32\Airpcap_Devpack -G"%GENERATOR%" .. + - if DEFINED PLATFORM cmake %AIRPCAP% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DAirPcap_ROOT=c:\projects\libpcap\Win32\Airpcap_Devpack -G"%GENERATOR%" -A %PLATFORM% .. - if NOT "%GENERATOR%"=="MinGW Makefiles" msbuild /m /nologo /p:Configuration=Release pcap.sln - if "%GENERATOR%"=="MinGW Makefiles" mingw32-make