From 092f8b1e29aa8e58ed0bdf75335a7f5f3ee6a56c Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 23 Feb 2022 00:23:14 +0800 Subject: fix languages for vs generator --- xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua index febbbe09b..9317312a0 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua @@ -597,6 +597,7 @@ function _make_common_item(vcxprojfile, vsinfo, target, targetinfo) local cstandard local cxxstandard for _, lang in pairs(targetinfo.languages) do + lang = lang:replace("c++", "cxx", {plain = true}) if cxxlangflags[lang] then cxxstandard = cxxlangflags[lang] elseif clangflags[lang] then -- cgit v1.3.1