summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-11 00:07:31 +0800
committerruki <[email protected]>2026-02-11 00:07:31 +0800
commit8b503564c15fd89caf4c0ee983dac525ff820d64 (patch)
treef099b52c08f81189861335b0a778821bb6d462ce
parentf9a18b3ce8bac2a91f0975d2965d07b724524923 (diff)
improve qt tips
-rw-r--r--xmake/modules/detect/sdks/find_qt.lua14
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