summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFireFight <[email protected]>2026-02-09 23:05:53 +0800
committerFireFight <[email protected]>2026-02-09 23:05:53 +0800
commitf59f6f76dc143b362215ba7fd53296036fb05d3a (patch)
tree1c3756c434db22e32d7e6fffda08d8443a5afaea
parentffca998d007a44b3f14ab5548e336a9d16eb9b75 (diff)
add triplet in vcpkg command line
-rw-r--r--xmake/modules/package/manager/vcpkg/find_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/vcpkg/find_package.lua b/xmake/modules/package/manager/vcpkg/find_package.lua
index 3e2a3b828..045adf050 100644
--- a/xmake/modules/package/manager/vcpkg/find_package.lua
+++ b/xmake/modules/package/manager/vcpkg/find_package.lua
@@ -163,7 +163,7 @@ function _find_package(vcpkg, vcpkgdir, name, opt)
-- find dependency package
local result = nil
- local _, dependinfo = try { function () return os.iorunv(vcpkg, {"depend-info", name, "--sort=reverse"}) end }
+ local _, dependinfo = try { function () return os.iorunv(vcpkg, {"depend-info", name, "--sort=reverse", "--triplet=" .. triplet}) end }
if dependinfo then
for _, line in ipairs(dependinfo:split("\n", {plain = true})) do
if not line:startswith("vcpkg-") then