summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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