Skip to content

Commit 2d21e89

Browse files
update build.bat
1 parent 06513d9 commit 2d21e89

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

build.bat

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ rem
88
set BASEDIR=%~dp0
99

1010
call "C:\Qt\6.11.1\msvc2022_64\bin\qtenv2.bat"
11-
rem call "C:\Qt\6.5.3\msvc2019_64\bin\qtenv2.bat"
1211

1312
set ARCH=amd64
1413
set VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
1514
set VCVARSBAT=""
1615
set VSVER=18 2022 2019
17-
set PATH=C:\Qt\Tools\CMake_64\bin;%PATH%
16+
1817

1918
if exist %VSWHERE% (
2019
for %%v in (%VSVER%) do (
@@ -38,6 +37,11 @@ if exist %VCVARSBAT% (
3837
exit
3938
)
4039

40+
where cmake >nul 2>&1
41+
if ERRORLEVEL 1 (
42+
set "PATH=C:\Qt\Tools\CMake_64\bin;%PATH%"
43+
)
44+
4145
cd /D %BASEDIR%
4246
call compile_install.bat
4347

0 commit comments

Comments
 (0)