Skip to content

Commit

Permalink
improve compatibility with vs2022 (AlexeyAB#8295)
Browse files Browse the repository at this point in the history
  • Loading branch information
cenit authored Dec 17, 2021
1 parent 7fe4fb7 commit 967b72d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ param (
[string]$AdditionalBuildSetup = "" # "-DCMAKE_CUDA_ARCHITECTURES=30"
)

$build_ps1_version = "0.9.7"
$build_ps1_version = "0.9.8"

$ErrorActionPreference = "SilentlyContinue"
Stop-Transcript | out-null
Expand Down Expand Up @@ -678,6 +678,10 @@ if (-Not $DoNotSetupVS) {
$generator = "Visual Studio 16 2019"
$AdditionalBuildSetup = $AdditionalBuildSetup + " -T `"host=x64`" -A `"x64`""
}
elseif ($tokens[0] -eq "17") {
$generator = "Visual Studio 17 2022"
$AdditionalBuildSetup = $AdditionalBuildSetup + " -T `"host=x64`" -A `"x64`""
}
else {
MyThrow("Unknown Visual Studio version, unsupported configuration")
}
Expand Down

0 comments on commit 967b72d

Please sign in to comment.