summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules')
-rw-r--r--xmake/rules/qt/moc/xmake.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/qt/moc/xmake.lua b/xmake/rules/qt/moc/xmake.lua
index d520596b6..6290e6395 100644
--- a/xmake/rules/qt/moc/xmake.lua
+++ b/xmake/rules/qt/moc/xmake.lua
@@ -76,7 +76,9 @@ rule("qt.moc")
end
return item
end)
- table.insert(flags, pathitem)
+ if not pathitem:empty() then
+ table.insert(flags, pathitem)
+ end
end
end
local user_flags = target:get("qt.moc.flags") or {}