This adds preliminary VS 2022 support, since there currently is no CMake version that supports the VS2022 IDE only ninja support was tested. IDE support should work without any additional changes as soon as an updated CMake becomes available. As VS2022 appears to keep binary compatibility with earlier MSVC versions, the current SVN libraries will work for this version.
17 lines
478 B
Batchfile
17 lines
478 B
Batchfile
echo No explicit msvc version requested, autodetecting version.
|
|
|
|
call "%~dp0\detect_msvc2017.cmd"
|
|
if %ERRORLEVEL% EQU 0 goto DetectionComplete
|
|
|
|
call "%~dp0\detect_msvc2019.cmd"
|
|
if %ERRORLEVEL% EQU 0 goto DetectionComplete
|
|
|
|
call "%~dp0\detect_msvc2022.cmd"
|
|
if %ERRORLEVEL% EQU 0 goto DetectionComplete
|
|
|
|
echo Compiler Detection failed. Use verbose switch for more information.
|
|
exit /b 1
|
|
|
|
:DetectionComplete
|
|
echo Compiler Detection successful, detected VS%BUILD_VS_YEAR%
|
|
exit /b 0 |