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