From cbf12900bcfad0224f1641451b62f936d8673280 Mon Sep 17 00:00:00 2001 From: Matt Oliver Date: Sun, 8 Sep 2019 03:09:19 +1000 Subject: [PATCH] project: Add appveyor support for VS 2019. --- SMP/appveyor.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SMP/appveyor.yml b/SMP/appveyor.yml index 98f01f3c1..60578a61f 100644 --- a/SMP/appveyor.yml +++ b/SMP/appveyor.yml @@ -18,6 +18,8 @@ environment: APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - MSVC_VER: 15 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 + - MSVC_VER: 16 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 install: # Install GitLink @@ -30,7 +32,9 @@ before_build: # Setup msvc environment for required compiler version (specified by MSVC_VER) - ps: >- - if ($env:MSVC_VER -eq 15) { + if ($env:MSVC_VER -eq 16) { + $env:VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" + } elseif ($env:MSVC_VER -eq 15) { $env:VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" } else { $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:MSVC_VER" + "0COMNTOOLS")) @@ -100,7 +104,9 @@ before_build: # Set Targets path so that gitlink works correctly - ps: $env:MSBUILDDIR=((Get-Command msbuild.exe).Path | Split-Path -parent) - ps: >- - if ($env:MSVC_VER -eq 15) { + if ($env:MSVC_VER -eq 16) { + $env:VCTargetsPath="$env:MSBUILDDIR\..\..\Microsoft\VC\v160\" + } elseif ($env:MSVC_VER -eq 15) { $env:VCTargetsPath="$env:MSBUILDDIR\..\..\..\Common7\IDE\VC\VCTargets" } else { $env:VCTargetsPath="$env:MSBUILDDIR\..\..\..\Microsoft.Cpp\v4.0\V${env:MSVC_VER}0"