diff options
| -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 |
