From 5b092f9c02dc334e57330823c696025ca0eca74a Mon Sep 17 00:00:00 2001 From: jinke18 Date: Wed, 24 Jul 2024 20:20:34 +0800 Subject: [PATCH] fixbug: invalid project group when generate a vs project --- xmake/plugins/project/vstudio/impl/vs201x_solution.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/plugins/project/vstudio/impl/vs201x_solution.lua b/xmake/plugins/project/vstudio/impl/vs201x_solution.lua index 82ede489a75..c9cae25c116 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_solution.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_solution.lua @@ -122,8 +122,8 @@ function _make_global(slnfile, vsinfo) -- group -> group -> ... local group_names = path.split(group_path) for idx, group_name in ipairs(group_names) do - local key = group_name .. (group_name_sub or "") local group_name_sub = group_names[idx + 1] + local key = group_name .. (group_name_sub or "") if group_name_sub and not subgroups[key] then slnfile:print("{%s} = {%s}", hash.uuid4("group." .. group_name_sub), hash.uuid4("group." .. group_name)) subgroups[key] = true