diff options
| author | ruki <[email protected]> | 2024-01-24 23:12:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-24 23:12:27 +0800 |
| commit | d1902a34e072263fb642398121c932e1fa4200be (patch) | |
| tree | 1f7518cc3c6a9293e4dcf4fbe7d6256acdaeba92 | |
| parent | 3456995d83116bc62b2b516c112459805a769fbc (diff) | |
improve to find_qt
| -rw-r--r-- | xmake/modules/detect/sdks/find_qt.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/detect/sdks/find_qt.lua b/xmake/modules/detect/sdks/find_qt.lua index 3700df53d..d141eee3a 100644 --- a/xmake/modules/detect/sdks/find_qt.lua +++ b/xmake/modules/detect/sdks/find_qt.lua @@ -119,8 +119,9 @@ function _find_sdkdir(sdkdir, sdkver) end end else - table.insert(paths, "~/Qt") - table.insert(paths, "~/Qt*") + for _, dir in ipairs(os.dirs("~/Qt*")) do + table.insert(paths, dir) + end end -- special case for android on windows, where qmake is a .bat from version 6.3 |
