summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/manager/cargo/find_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/cargo/find_package.lua b/xmake/modules/package/manager/cargo/find_package.lua
index d53268333..577fbf253 100644
--- a/xmake/modules/package/manager/cargo/find_package.lua
+++ b/xmake/modules/package/manager/cargo/find_package.lua
@@ -33,7 +33,7 @@ import("lib.detect.find_file")
-- sdl2 -> libsdl2
-- obj-rs -> libobj
function _get_libname(name)
- return "lib" .. name:split("%-")[1]
+ return "lib" .. name:gsub("-", "_")
end
-- get the name set of libraries