Skip to content

Commit bf83aa2

Browse files
committed
Adjust build script for Visual Studio 2026
1 parent 90dff07 commit bf83aa2

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

builds/win32/setenvvar.bat

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,20 @@ for %%v in ( %* ) do (
4646
::
4747

4848
@if not DEFINED FB_VSCOMNTOOLS (
49-
if DEFINED VS170COMNTOOLS (
50-
set "FB_VSCOMNTOOLS=%VS170COMNTOOLS%"
49+
if DEFINED VS180COMNTOOLS (
50+
set "FB_VSCOMNTOOLS=%VS180COMNTOOLS%"
5151
) else (
52-
if DEFINED VS160COMNTOOLS (
53-
set "FB_VSCOMNTOOLS=%VS160COMNTOOLS%"
52+
if DEFINED VS170COMNTOOLS (
53+
set "FB_VSCOMNTOOLS=%VS170COMNTOOLS%"
5454
) else (
55-
if DEFINED VS150COMNTOOLS (
56-
set "FB_VSCOMNTOOLS=%VS150COMNTOOLS%"
55+
if DEFINED VS160COMNTOOLS (
56+
set "FB_VSCOMNTOOLS=%VS160COMNTOOLS%"
5757
) else (
58-
goto :HELP
58+
if DEFINED VS150COMNTOOLS (
59+
set "FB_VSCOMNTOOLS=%VS150COMNTOOLS%"
60+
) else (
61+
goto :HELP
62+
)
5963
)
6064
)
6165
)
@@ -64,6 +68,10 @@ for %%v in ( %* ) do (
6468
:: Now set some firebird build specific variables that depend upon the
6569
:: version of Visual Studio that is being used for the build.
6670
@if DEFINED FB_VSCOMNTOOLS (
71+
if "%FB_VSCOMNTOOLS%" == "%VS180COMNTOOLS%" (
72+
set MSVC_VERSION=15
73+
set MSVC_CMAKE_GENERATOR=Visual Studio 18 2026
74+
)
6775
if "%FB_VSCOMNTOOLS%" == "%VS170COMNTOOLS%" (
6876
set MSVC_VERSION=15
6977
set MSVC_CMAKE_GENERATOR=Visual Studio 17 2022

0 commit comments

Comments
 (0)