diff options
| author | ruki <[email protected]> | 2023-01-18 00:42:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-01-18 00:42:31 +0800 |
| commit | 414e38a8d66df9dfff6ecf70a89b7b691808d6d9 (patch) | |
| tree | 2329013606be30dd7a3100c230de1e053ad183c5 | |
| parent | 6815fef186d11ce80fd569a72355bc9b222e35af (diff) | |
improve group
| -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 |
