diff options
| author | ruki <[email protected]> | 2018-04-17 00:43:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-04-16 22:22:03 +0800 |
| commit | 4d630e8c0844d946e422ad347aa7708eca412b38 (patch) | |
| tree | 573c8cfb868f89f0b3748359282402121efa8b34 /xmake/modules/detect | |
| parent | 811bda9a12d7cecfaac97f2ab9943daa4e627396 (diff) | |
add quickapp
Diffstat (limited to 'xmake/modules/detect')
| -rw-r--r-- | xmake/modules/detect/sdks/find_qt.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_qt.lua b/xmake/modules/detect/sdks/find_qt.lua index 0ef499544..04f3041af 100644 --- a/xmake/modules/detect/sdks/find_qt.lua +++ b/xmake/modules/detect/sdks/find_qt.lua @@ -72,8 +72,11 @@ function _find_qt(sdkdir) -- get includedirs local includedirs = {path.join(sdkdir, "include")} + -- get version + local version = sdkdir:match("(%d+%.?%d*%.?%d*.-)") + -- get toolchains - return {sdkdir = sdkdir, bindir = bindir, linkdirs = linkdirs, includedirs = includedirs} + return {sdkdir = sdkdir, bindir = bindir, linkdirs = linkdirs, includedirs = includedirs, version = version} end -- find qt sdk toolchains |
