Skip to content

Commit

Permalink
project: Fix VS2022 CI build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibras committed Dec 29, 2022
1 parent e99a6a9 commit fe58691
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SMP/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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"
Expand Down Expand Up @@ -107,7 +109,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"
Expand Down

0 comments on commit fe58691

Please sign in to comment.