diff options
| author | ruki <[email protected]> | 2018-12-01 00:46:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-11-30 22:41:35 +0800 |
| commit | 874d33e13dda991583f0293f4ff5b67ea3544ae5 (patch) | |
| tree | cad58186b72c28c63b3ddd6995f9034dc66a1393 | |
| parent | 9566d0af2514225130bc4c3d6946d1d1c8c65fe3 (diff) | |
fix find version bug
| -rw-r--r-- | xmake/core/sandbox/modules/import/lib/detect/find_package.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/import/lib/detect/find_package.lua b/xmake/core/sandbox/modules/import/lib/detect/find_package.lua index f38f3a518..e1ca78486 100644 --- a/xmake/core/sandbox/modules/import/lib/detect/find_package.lua +++ b/xmake/core/sandbox/modules/import/lib/detect/find_package.lua @@ -269,7 +269,7 @@ function sandbox_lib_detect_find_package._find_from_prefixdirs(name, opt) end -- get version - result.version = path.basename(path.directory(prefixfile)) + result.version = path.filename(path.directory(prefixfile)) -- ok return result |
