summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSirLynix <[email protected]>2023-08-01 07:47:43 +0200
committerSirLynix <[email protected]>2023-08-01 07:47:43 +0200
commitbdb656924022ef9f6ed88b5b39a6ff0f3b52386e (patch)
tree388fbc495bc6afdd60c731675537cbd0683930e7
parent5d92eb8501d693b15e0960f90d34983608fa6758 (diff)
stop once a filter is found
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua4
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua4
2 files changed, 8 insertions, 0 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua
index c894e3bb6..872e5c9fb 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua
@@ -103,6 +103,10 @@ function _make_filter(filepath, target, vcxprojdir)
break
end
end
+ -- stop once a rootdir matches
+ if filter then
+ break
+ end
end
end
end
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index 861d6a9e6..60ea5eecd 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -352,6 +352,10 @@ function _make_filter(filepath, target, vcxprojdir)
break
end
end
+ -- stop once a rootdir matches
+ if filter then
+ break
+ end
end
end
end