From ef6d7a53e0ac371a624349e22b44271717f01ad7 Mon Sep 17 00:00:00 2001 From: RDW Date: Fri, 27 May 2022 16:17:06 +0200 Subject: [PATCH] Fix CMake builds using Visual Studio 2022 It tried to use 2019 by default, and that'll fail if only 2022 is installed. --- make.bat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make.bat b/make.bat index 53e846bc..9ed65134 100644 --- a/make.bat +++ b/make.bat @@ -10,6 +10,8 @@ reg query HKEY_CLASSES_ROOT\VisualStudio.DTE.15.0 >nul 2>nul IF %errorlevel%==0 set GENERATOR=Visual Studio 15 reg query HKEY_CLASSES_ROOT\VisualStudio.DTE.16.0 >nul 2>nul IF %errorlevel%==0 set GENERATOR=Visual Studio 16 +reg query HKEY_CLASSES_ROOT\VisualStudio.DTE.17.0 >nul 2>nul +IF %errorlevel%==0 set GENERATOR=Visual Studio 17 for /f %%i in ('git describe --tags') do set LUVI_TAG=%%i IF NOT "x%1" == "x" GOTO :%1