From 04496cc535cf0b2cec4721f321ea16317c6c1a88 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 21 Dec 2021 16:50:43 +0800 Subject: [PATCH] win32/detectenv-msvc.mak: Add section on VS2022 This will make introspection builds via the Visual Studio 2022 projects work as the NMake Makefiles were looking for VS2019 builds, which most probably did not exist --- win32/detectenv-msvc.mak | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/win32/detectenv-msvc.mak b/win32/detectenv-msvc.mak index 29b73d88bf..4c25954102 100644 --- a/win32/detectenv-msvc.mak +++ b/win32/detectenv-msvc.mak @@ -46,8 +46,10 @@ VSVER = 12 VSVER = 14 !elseif $(VCVERSION) > 1909 && $(VCVERSION) < 1920 VSVER = 15 -!elseif $(VCVERSION) > 1919 && $(VCVERSION) < 2000 +!elseif $(VCVERSION) > 1919 && $(VCVERSION) < 1930 VSVER = 16 +!elseif $(VCVERSION) > 1929 && $(VCVERSION) < 2000 +VSVER = 17 !else VSVER = 0 !endif @@ -55,7 +57,7 @@ VSVER = 0 !if "$(VSVER)" == "0" MSG = ^ This NMake Makefile set supports Visual Studio^ -9 (2008) through 16 (2019). Your Visual Studio^ +9 (2008) through 17 (2022). Your Visual Studio^ version is not supported. !error $(MSG) !endif