From cdb30e350f71f944ad0afaf1bfe4a783f42c1be9 Mon Sep 17 00:00:00 2001 From: Matt Oliver Date: Thu, 25 Nov 2021 23:05:56 +1100 Subject: [PATCH] project: Add appveyor VS2022 build. --- SMP/appveyor.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SMP/appveyor.yml b/SMP/appveyor.yml index c5a953571..7f31275dc 100644 --- a/SMP/appveyor.yml +++ b/SMP/appveyor.yml @@ -20,6 +20,8 @@ environment: APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - MSVC_VER: 16 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 + - MSVC_VER: 17 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 install: # Install GitLink @@ -32,7 +34,9 @@ before_build: # Setup msvc environment for required compiler version (specified by MSVC_VER) - ps: >- - if ($env:MSVC_VER -eq 16) { + if ($env:MSVC_VER -eq 17) { + $env:VCVARS="C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" + } elseif ($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" @@ -104,7 +108,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 16) { + if ($env:MSVC_VER -eq 17) { + $env:VCTargetsPath="$env:MSBUILDDIR\..\..\..\Microsoft\VC\v170\" + } elseif ($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"