2
2
setlocal enabledelayedexpansion
3
3
4
4
set TOOLCHAINPATH = %~dp0 toolchain\gcc4
5
- set CMAKE_ROOT = %TOOLCHAINPATH% \share\cmake-3.17
5
+ set CMAKE_ROOT = %TOOLCHAINPATH% \share\cmake-3.23
6
6
7
7
if not exist %TOOLCHAINPATH% (
8
8
echo Native toolchain not found.
50
50
mkdir msvc-win-win32-rts-%Configuration%
51
51
cd msvc-win-win32-rts-%Configuration%
52
52
53
- cmake -G " Visual Studio 16 2019 " -A Win32 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-win.cmake -DPLATFORM=Win32 -DRUNTIMELIB=rts -DCONFIGURATION=%Configuration% ../..
53
+ cmake -G " Visual Studio 17 2022 " -A Win32 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-win.cmake -DPLATFORM=Win32 -DRUNTIMELIB=rts -DCONFIGURATION=%Configuration% ../..
54
54
if errorlevel 1 (
55
55
exit /b %errorlevel%
56
56
)
73
73
mkdir msvc-win-x64-rts-%Configuration%
74
74
cd msvc-win-x64-rts-%Configuration%
75
75
76
- cmake -G " Visual Studio 16 2019 " -A x64 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-win.cmake -DPLATFORM=x64 -DRUNTIMELIB=rts -DCONFIGURATION=%Configuration% ../..
76
+ cmake -G " Visual Studio 17 2022 " -A x64 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-win.cmake -DPLATFORM=x64 -DRUNTIMELIB=rts -DCONFIGURATION=%Configuration% ../..
77
77
if errorlevel 1 (
78
78
exit /b %errorlevel%
79
79
)
96
96
mkdir msvc-win-win32-rtd-%Configuration%
97
97
cd msvc-win-win32-rtd-%Configuration%
98
98
99
- cmake -G " Visual Studio 16 2019 " -A Win32 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-win.cmake -DPLATFORM=Win32 -DRUNTIMELIB=rtd -DCONFIGURATION=%Configuration% ../..
99
+ cmake -G " Visual Studio 17 2022 " -A Win32 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-win.cmake -DPLATFORM=Win32 -DRUNTIMELIB=rtd -DCONFIGURATION=%Configuration% ../..
100
100
if errorlevel 1 (
101
101
exit /b %errorlevel%
102
102
)
@@ -119,7 +119,7 @@ echo.
119
119
mkdir msvc-win-x64-rtd-%Configuration%
120
120
cd msvc-win-x64-rtd-%Configuration%
121
121
122
- cmake -G " Visual Studio 16 2019 " -A x64 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-win.cmake -DPLATFORM=x64 -DRUNTIMELIB=rtd -DCONFIGURATION=%Configuration% ../..
122
+ cmake -G " Visual Studio 17 2022 " -A x64 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-win.cmake -DPLATFORM=x64 -DRUNTIMELIB=rtd -DCONFIGURATION=%Configuration% ../..
123
123
if errorlevel 1 (
124
124
exit /b %errorlevel%
125
125
)
@@ -142,7 +142,7 @@ echo.
142
142
mkdir msvc-uefi-win32-%Configuration%
143
143
cd msvc-uefi-win32-%Configuration%
144
144
145
- cmake -G " Visual Studio 16 2019 " -A Win32 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-uefi.cmake -DPLATFORM=Win32 -DCONFIGURATION=%Configuration% ../..
145
+ cmake -G " Visual Studio 17 2022 " -A Win32 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-uefi.cmake -DPLATFORM=Win32 -DCONFIGURATION=%Configuration% ../..
146
146
if errorlevel 1 (
147
147
exit /b %errorlevel%
148
148
)
@@ -165,7 +165,7 @@ echo.
165
165
mkdir msvc-uefi-x64-%Configuration%
166
166
cd msvc-uefi-x64-%Configuration%
167
167
168
- cmake -G " Visual Studio 16 2019 " -A x64 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-uefi.cmake -DPLATFORM=x64 -DCONFIGURATION=%Configuration% ../..
168
+ cmake -G " Visual Studio 17 2022 " -A x64 -DCMAKE_TOOLCHAIN_FILE=../../cmake/msvc-uefi.cmake -DPLATFORM=x64 -DCONFIGURATION=%Configuration% ../..
169
169
if errorlevel 1 (
170
170
exit /b %errorlevel%
171
171
)
0 commit comments