summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/sandbox/modules/import/lib/detect/find_package.lua2
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