aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps
diff options
context:
space:
mode:
authorAlwin Esch <alwin.esch@web.de>2021-12-07 22:50:03 +0100
committerAlwin Esch <alwin.esch@web.de>2021-12-07 22:53:21 +0100
commiteeef9a53baea5063cff40f7f57fa55b75df20f27 (patch)
tree1a1ee7ca67236a000fe9b9597723c7ad9a1f5a0c /tools/buildsteps
parent00c92eb1b553b71a1cd311947da09b7b39cc7ab9 (diff)
Updated build script for Visual Studio 2022 compatibility
- Updated build scripts for Visual Studio 2022 compatibility. - Maintains backward compatibility with VS 2017 and VS 2019. - If all versions of Visual Studio are installed, the newest version is chosen.
Diffstat (limited to 'tools/buildsteps')
-rw-r--r--tools/buildsteps/windows/vswhere.bat2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/buildsteps/windows/vswhere.bat b/tools/buildsteps/windows/vswhere.bat
index 97c2594ff4..b8c60b9e34 100644
--- a/tools/buildsteps/windows/vswhere.bat
+++ b/tools/buildsteps/windows/vswhere.bat
@@ -50,6 +50,8 @@ FOR /f "usebackq tokens=1* delims=" %%i in (`%vswhere% -latest -property install
SET vsver=15 2017
ECHO %%i | findstr "2019" >NUL 2>NUL
IF NOT ERRORLEVEL 1 SET vsver=16 2019
+ ECHO %%i | findstr "2022" >NUL 2>NUL
+ IF NOT ERRORLEVEL 1 SET vsver=17 2022
)
)