diff options
| author | ruki <[email protected]> | 2022-08-05 00:40:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-05 00:40:16 +0800 |
| commit | e581f5c19ad1feeed70e26d294c114c48ade00da (patch) | |
| tree | 52e3158f303285e01a60855287b7de85da433fd3 /xmake/rules/qt/env/xmake.lua | |
| parent | b8c3621afb10f6dd7ee483ed8bebfb039cd11d7e (diff) | |
optimize to get headerunits info
Diffstat (limited to 'xmake/rules/qt/env/xmake.lua')
| -rw-r--r-- | xmake/rules/qt/env/xmake.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/qt/env/xmake.lua b/xmake/rules/qt/env/xmake.lua index 592ef07d9..815ae49cb 100644 --- a/xmake/rules/qt/env/xmake.lua +++ b/xmake/rules/qt/env/xmake.lua @@ -34,9 +34,9 @@ rule("qt.env") local qmlimportpath = target:values("qt.env.qmlimportpath") or {} if target:is_plat("windows") or (target:is_plat("mingw") and is_host("windows")) then target:add("runenvs", "PATH", qt.bindir) - table.append(qmlimportpath, qt.qmldir) + table.insert(qmlimportpath, qt.qmldir) -- add targetdir in QML2_IMPORT_PATH in case of the user have qml plugins - table.append(qmlimportpath, target:targetdir()) + table.insert(qmlimportpath, target:targetdir()) target:set("runenv", "QML_IMPORT_TRACE", "1") elseif target:is_plat("msys", "cygwin") then raise("please run `xmake f -p mingw --mingw=/mingw64` to support Qt/Mingw64 on Msys!") |
