summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-09 23:01:47 +0800
committerruki <[email protected]>2023-03-09 23:01:47 +0800
commitee043df59baa9c496e12e930790e86d1bae22d16 (patch)
tree2216ad9146b93c91f21f9739837c388b0f4f7389 /xmake/rules
parenta998fe06c24a2e041e6cf44a26437072e9b0c132 (diff)
improve path and moc rule #3457
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 {}