diff options
| author | ruki <[email protected]> | 2023-04-06 00:30:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-04-06 00:30:49 +0800 |
| commit | d21367e79a12e8f05829df3eb6509f8f86e64405 (patch) | |
| tree | e5727836469d15748d3054a4068cacd1740ef111 /xmake/plugins/project/vstudio/impl | |
| parent | 315229f079381cbb3e89bcd602d1173451d0ceb2 (diff) | |
improve filegroup #3598
Diffstat (limited to 'xmake/plugins/project/vstudio/impl')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua index d418afb34..f9f358acb 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua @@ -88,7 +88,11 @@ function _make_filter(filepath, target, vcxprojdir) filter = path.normalize(filegroup) else -- file tree mode (default) - filter = path.normalize(path.join(filegroup, path.directory(fileitem))) + if filegroup ~= "" then + filter = path.normalize(path.join(filegroup, path.directory(fileitem))) + else + filter = path.normalize(path.directory(fileitem)) + end end if filter and filter == '.' then filter = nil |
