diff options
| -rw-r--r-- | xmake/modules/detect/sdks/find_qt.lua | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/xmake/modules/detect/sdks/find_qt.lua b/xmake/modules/detect/sdks/find_qt.lua index e0aa3b03d..a7aa8e57c 100644 --- a/xmake/modules/detect/sdks/find_qt.lua +++ b/xmake/modules/detect/sdks/find_qt.lua @@ -351,25 +351,19 @@ function main(sdkdir, opt) local sdkdir_host = opt.sdkdir_host or config.get("qt_host") or global.get("qt_host") local qt = _find_qt(sdkdir, sdkver, sdkdir_host) if qt then - - -- save to config config.set("qt", qt.sdkdir, {force = true, readonly = true}) config.set("qt_sdkver", qt.sdkver, {force = true, readonly = true}) - -- trace if opt.verbose or option.get("verbose") then - cprint("checking for Qt SDK directory ... ${color.success}%s", qt.sdkdir) + local extra = "" if qt.sdkver then - cprint("checking for Qt SDK version ... ${color.success}%s", qt.sdkver) - else - cprint("checking for Qt SDK version ... ${color.nothing}${text.nothing}") + extra = " (" .. qt.sdkver .. ")" end + cprint("checking for Qt SDK ... ${color.success}%s%s", qt.sdkdir, extra) end else - - -- trace if opt.verbose or option.get("verbose") then - cprint("checking for Qt SDK directory ... ${color.nothing}${text.nothing}") + cprint("checking for Qt SDK ... ${color.nothing}${text.nothing}") end end |
