summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-08-28 00:50:53 +0800
committerruki <[email protected]>2020-08-28 00:50:53 +0800
commitefb8e8c1ef851be738d69aa563c9a4097cd42246 (patch)
tree77b2ef073bb97af083752f0a1e2ae0ee417bb9df
parent9bb49a2267de8aef906b86ed9649dbac4b698a03 (diff)
fix find_package for vcpkg
-rw-r--r--xmake/modules/package/manager/vcpkg/find_package.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/vcpkg/find_package.lua b/xmake/modules/package/manager/vcpkg/find_package.lua
index 2dbf51cfe..711d9b44b 100644
--- a/xmake/modules/package/manager/vcpkg/find_package.lua
+++ b/xmake/modules/package/manager/vcpkg/find_package.lua
@@ -38,6 +38,10 @@ function main(name, opt)
return
end
+ -- fix name, e.g. ffmpeg[x264] as ffmpeg
+ -- @see https://github.com/xmake-io/xmake/issues/925
+ name = name:gsub("%[.-%]", "")
+
-- get arch, plat and mode
local arch = opt.arch
local plat = opt.plat