summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFireFight <[email protected]>2026-02-09 22:06:00 +0800
committerFireFight <[email protected]>2026-02-09 22:06:00 +0800
commit0cca97947f2bcc453019bcedebac4a4eaf06afce (patch)
treef4cf89e3bf3e2251d6a9d7404baa17195ac3845a
parente592136e1836295385ef9ef725efd7e9c7c1ae93 (diff)
set vcpkg order by command line arguments
-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 bd41e215c..8e89bd211 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 = os.iorunv(vcpkg, {"depend-info", name})
+ local _, dependinfo = os.iorunv(vcpkg, {"depend-info", name, "--sort=reverse"})
if dependinfo then
for _, line in ipairs(dependinfo:split("\n", {plain = true})) do
if not line:startswith("vcpkg-") then