diff options
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_solution.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_solution.lua b/xmake/plugins/project/vstudio/impl/vs201x_solution.lua index 599d2b38d..f482c1abd 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_solution.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_solution.lua @@ -62,7 +62,7 @@ function _make_projects(slnfile, vsinfo) end slnfile:leave("EndProject") local group_path = target:get("group") - if group_path then + if group_path and #(group_path:trim()) > 0 then for _, group_name in ipairs(path.split(group_path)) do groups[group_name] = hash.uuid4("group." .. group_name) end diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index 9afe6f624..ac1578e78 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -286,7 +286,7 @@ function _make_vsinfo_groups() local group_deps = {} for targetname, target in table.orderpairs(project.targets()) do local group_path = target:get("group") - if group_path then + if group_path and #(group_path:trim()) > 0 then local group_name = path.filename(group_path) local group_names = path.split(group_path) for idx, name in ipairs(group_names) do |
