diff options
| -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 |
