Skip to content

Commit 39f0e36

Browse files
bugfix of configure.bat
1 parent f0d93f8 commit 39f0e36

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

configure.bat

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,21 @@ if not ERRORLEVEL 1 (
102102
set CMAKEOPT=Visual Studio 16 2019
103103
)
104104
) else (
105-
set VSVER=2017
106-
if /i "%Platform%" == "x64" (
107-
set CMAKEOPT=Visual Studio 15 2017 Win64
105+
echo %QT_INSTALL_PREFIX% | find "msvc2017" >NUL
106+
if not ERRORLEVEL 1 (
107+
set VSVER=2017
108+
if /i "%Platform%" == "x64" (
109+
set CMAKEOPT=Visual Studio 15 2017 Win64
110+
) else (
111+
set CMAKEOPT=Visual Studio 15 2017
112+
)
108113
) else (
109-
set CMAKEOPT=Visual Studio 15 2017
114+
set VSVER=2015
115+
if /i "%Platform%" == "x64" (
116+
set CMAKEOPT=Visual Studio 14 2015 Win64
117+
) else (
118+
set CMAKEOPT=Visual Studio 14 2015
119+
)
110120
)
111121
)
112122

0 commit comments

Comments
 (0)