From 0cca97947f2bcc453019bcedebac4a4eaf06afce Mon Sep 17 00:00:00 2001 From: FireFight <2268561366@qq.com> Date: Mon, 9 Feb 2026 22:06:00 +0800 Subject: set vcpkg order by command line arguments --- xmake/modules/package/manager/vcpkg/find_package.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1