summaryrefslogtreecommitdiff
path: root/xmake/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts')
-rw-r--r--xmake/scripts/base/rule.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/base/rule.lua b/xmake/scripts/base/rule.lua
index 0be7aaaab..59885d1b4 100644
--- a/xmake/scripts/base/rule.lua
+++ b/xmake/scripts/base/rule.lua
@@ -207,7 +207,7 @@ function rule.headerfiles(target)
for _, header in ipairs(utils.wrap(headers)) do
-- get the root directory
- local rootdir = header:gsub("%(.*%)", "")
+ local rootdir = header:gsub("%(.*%)", ""):gsub("|.*$", "")
-- remove '(' and ')'
local srcpathes = header:gsub("[%(%)]", "")