diff options
| -rw-r--r-- | xmake/modules/detect/sdks/find_qt.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_qt.lua b/xmake/modules/detect/sdks/find_qt.lua index d6734b292..315c57f55 100644 --- a/xmake/modules/detect/sdks/find_qt.lua +++ b/xmake/modules/detect/sdks/find_qt.lua @@ -79,6 +79,14 @@ function _find_sdkdir(sdkdir, sdkver) end if is_host("windows") then + -- we find it from /mingw64 first + if is_subhost("msys") then + local mingw_prefix = os.getenv("MINGW_PREFIX") + if mingw_prefix and os.isdir(mingw_prefix) then + table.insert(paths, mingw_prefix) + end + end + -- add paths from registry local regs = { |
