diff options
| -rw-r--r-- | xmake/modules/package/manager/cargo/find_package.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/cargo/find_package.lua b/xmake/modules/package/manager/cargo/find_package.lua index 7fd151d5c..be6bd08ba 100644 --- a/xmake/modules/package/manager/cargo/find_package.lua +++ b/xmake/modules/package/manager/cargo/find_package.lua @@ -32,6 +32,8 @@ import("lib.detect.find_file") -- @param opt the options, e.g. {verbose = true, require_version = "1.12.x") -- function main(name, opt) + name = name:gsub("-", "_") + local frameworkdirs local frameworks local librarydir = path.join(opt.installdir, "lib") |
