summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/rule.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-17 13:21:52 +0800
committerruki <[email protected]>2015-06-17 13:21:52 +0800
commitb66c637057b49a68394419767157ddf1113ec5c1 (patch)
tree37a37a0a8bcac5441f72f4c15e950845cc707543 /xmake/scripts/base/rule.lua
parentdda38bb51d261f058706ada91fdf8b03701bd2e5 (diff)
fix excludes for headers
Diffstat (limited to 'xmake/scripts/base/rule.lua')
-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("[%(%)]", "")