diff options
| -rw-r--r-- | xmake/modules/detect/sdks/find_xcode.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_xcode.lua b/xmake/modules/detect/sdks/find_xcode.lua index dff7e56cd..1eaa11de2 100644 --- a/xmake/modules/detect/sdks/find_xcode.lua +++ b/xmake/modules/detect/sdks/find_xcode.lua @@ -67,7 +67,8 @@ function _find_xcode_sdkver(sdkdir, opt) if platsdkdir then local dir = find_directory(platsdkdir, sdkdir) if dir then - return dir:match("%d+%.%d+") + local basename = path.basename(dir) + return basename:match("%d+%.%d+") end end end |
