summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-10 22:33:13 +0800
committerruki <[email protected]>2020-06-10 09:19:21 +0800
commit78f1671c09dcee3802fc3bc69211f38179e555d8 (patch)
tree8e3d0ffa6420aafd0bbbfac7c99f054c73273008 /xmake/modules
parent2541fc0f29a2bf76dfa8b6f0f1389888330d198b (diff)
improve qt rules
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/sdks/find_qt.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_qt.lua b/xmake/modules/detect/sdks/find_qt.lua
index a6a5d20f6..5ef3bd8b4 100644
--- a/xmake/modules/detect/sdks/find_qt.lua
+++ b/xmake/modules/detect/sdks/find_qt.lua
@@ -177,7 +177,11 @@ function main(sdkdir, opt)
-- trace
if opt.verbose or option.get("verbose") then
cprint("checking for the Qt SDK directory ... ${color.success}%s", qt.sdkdir)
- cprint("checking for the Qt SDK version ... ${color.success}%s", qt.sdkver)
+ if qt.sdkver then
+ cprint("checking for the Qt SDK version ... ${color.success}%s", qt.sdkver)
+ else
+ cprint("checking for the Qt SDK version ... ${color.nothing}${text.nothing}")
+ end
end
else