diff options
| author | ruki <[email protected]> | 2026-02-09 22:38:06 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-09 22:38:06 +0800 |
| commit | 10153c43af376f10dfd77bf3ce26e48e62c35fbe (patch) | |
| tree | 38d1ae30370f85c6eec15a8caf58c2278c8aaa8a | |
| parent | 0cca97947f2bcc453019bcedebac4a4eaf06afce (diff) | |
Update find_package.lua
| -rw-r--r-- | xmake/modules/package/manager/vcpkg/find_package.lua | 4 |
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 |
