diff options
| author | ruki <[email protected]> | 2020-09-01 23:27:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-09-01 23:27:13 +0800 |
| commit | 88771a410a86d83ad35e4bc7e514934358395e3c (patch) | |
| tree | 884434c662be4f0f045f16ded6af8777bf472a3a | |
| parent | 825867bd8870f118fd052d8a8407fce839e158ed (diff) | |
fix find_qt
| -rw-r--r-- | xmake/modules/detect/sdks/find_qt.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_qt.lua b/xmake/modules/detect/sdks/find_qt.lua index 6a67a8431..1872a9df0 100644 --- a/xmake/modules/detect/sdks/find_qt.lua +++ b/xmake/modules/detect/sdks/find_qt.lua @@ -135,7 +135,7 @@ function _get_qtenvs(qmake) local results = try {function () return os.iorunv(qmake, {"-query"}) end} if results then for _, qtenv in ipairs(results:split('\n', {plain = true})) do - local kv = qtenv:split(':', {plain = true}) + local kv = qtenv:split(':', {plain = true, limit = 2}) -- @note set limit = 2 for supporting value with win-style path, e.g. `key:C:\xxx` if #kv == 2 then envs[kv[1]] = kv[2]:trim() end |
