diff options
| author | Jérôme Leclercq <[email protected]> | 2022-03-27 17:23:40 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-27 17:23:40 +0200 |
| commit | b978fd0a785d2b49fe44d487df9a5cea0e5832ce (patch) | |
| tree | 4c7072f4ebc720664a1000b79e32ce059129fbb8 | |
| parent | 0c51d82b9c4ed8762f11e6a52450c23918cfc49e (diff) | |
fix cargo.find_package with package containing "-"
| -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") |
