From ff4f34301b90bd8dc1397527fe2df26543a9af2f Mon Sep 17 00:00:00 2001 From: John Norman Date: Tue, 4 Jan 2022 13:03:24 -0800 Subject: [PATCH] Include the configuration condition for ExternalWarningLevel. --- modules/vstudio/vs2010_vcxproj.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/vstudio/vs2010_vcxproj.lua b/modules/vstudio/vs2010_vcxproj.lua index 7068a15f..78536985 100644 --- a/modules/vstudio/vs2010_vcxproj.lua +++ b/modules/vstudio/vs2010_vcxproj.lua @@ -2854,10 +2854,10 @@ end - function m.externalWarningLevel(cfg) + function m.externalWarningLevel(cfg, condition) if _ACTION >= "vs2022" then local map = { Off = "TurnOffAllWarnings", High = "Level4", Extra = "Level4", Everything = "Level4" } - m.element("ExternalWarningLevel", nil, map[cfg.externalwarnings] or "Level3") + m.element("ExternalWarningLevel", condition, map[cfg.externalwarnings] or "Level3") end end