diff options
| -rw-r--r-- | xmake/rules/qt/xmake.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/rules/qt/xmake.lua b/xmake/rules/qt/xmake.lua index 941e800c8..435c36383 100644 --- a/xmake/rules/qt/xmake.lua +++ b/xmake/rules/qt/xmake.lua @@ -33,6 +33,14 @@ rule("qt.env") end end) + -- before run + before_run(function (target) + local qt = target:data("qt") + if qt and (is_plat("windows") or (is_plat("mingw") and is_host("windows"))) then + os.addenv("PATH", qt.bindir) + end + end) + -- define rule: *.ui rule("qt.ui") |
