mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 12:31:12 +00:00
Fix VS version detection for autobuild script
This commit is contained in:
parent
4f4ad965d1
commit
c7491c386a
1 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
set TARGET=%1
|
||||
set VCCONFIG=%2
|
||||
|
||||
|
|
@ -25,9 +26,9 @@ for /f "usebackq delims=" %%i in ("%TEMP%\vspath.txt") do call "%%i\VC\Auxiliary
|
|||
set VS_GENERATOR=Visual Studio 17 2022
|
||||
for /f "usebackq delims=" %%v in ("%TEMP%\vsver.txt") do (
|
||||
set VSVER=%%v
|
||||
if "%%v:~0,2%%" == "16" set VS_GENERATOR=Visual Studio 16 2019
|
||||
if "%%v:~0,2%%" == "17" set VS_GENERATOR=Visual Studio 17 2022
|
||||
if "%%v:~0,2%%" == "18" set VS_GENERATOR=Visual Studio 18 2026
|
||||
if "!VSVER:~0,2!" == "16" set VS_GENERATOR=Visual Studio 16 2019
|
||||
if "!VSVER:~0,2!" == "17" set VS_GENERATOR=Visual Studio 17 2022
|
||||
if "!VSVER:~0,2!" == "18" set VS_GENERATOR=Visual Studio 18 2026
|
||||
)
|
||||
|
||||
:generator_set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue