summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-09 22:38:06 +0800
committerGitHub <[email protected]>2026-02-09 22:38:06 +0800
commit10153c43af376f10dfd77bf3ce26e48e62c35fbe (patch)
tree38d1ae30370f85c6eec15a8caf58c2278c8aaa8a
parent0cca97947f2bcc453019bcedebac4a4eaf06afce (diff)
Update find_package.lua
-rw-r--r--xmake/modules/package/manager/vcpkg/find_package.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/manager/vcpkg/find_package.lua b/xmake/modules/package/manager/vcpkg/find_package.lua
index 8e89bd211..fce1150a4 100644
--- a/xmake/modules/package/manager/vcpkg/find_package.lua
+++ b/xmake/modules/package/manager/vcpkg/find_package.lua
@@ -160,10 +160,10 @@ function _find_package(vcpkg, vcpkgdir, name, opt)
if not infofile then
return
end
-
+
-- find dependency package
local result = nil
- local _, dependinfo = os.iorunv(vcpkg, {"depend-info", name, "--sort=reverse"})
+ local _, dependinfo = try { function () return os.iorunv(vcpkg, {"depend-info", name, "--sort=reverse"}) end }
if dependinfo then
for _, line in ipairs(dependinfo:split("\n", {plain = true})) do
if not line:startswith("vcpkg-") then