summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-13 22:50:37 +0800
committerruki <[email protected]>2026-03-13 22:50:37 +0800
commite3f6cfa48dcc66c6f6a7994c442bc8c2be7cf445 (patch)
treea043c7be9c735d2aae350e8c8cca06cbe379b6e6
parentb6592501bdef4db1ae117b6c6a20a8a230e33907 (diff)
fix vcpkg utils
-rw-r--r--xmake/modules/package/manager/vcpkg/utils.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/vcpkg/utils.lua b/xmake/modules/package/manager/vcpkg/utils.lua
index 9eabe7cee..b7dd7237b 100644
--- a/xmake/modules/package/manager/vcpkg/utils.lua
+++ b/xmake/modules/package/manager/vcpkg/utils.lua
@@ -31,7 +31,8 @@ function is_installed(vcpkg, name, triplet)
if listinfo then
local exact_prefix = name .. ":" .. triplet
for _, line in ipairs(listinfo:split("\n", {plain = true})) do
- if line:startswith(exact_prefix) then
+ local first = line:split("%s")[1]
+ if first == exact_prefix then
return true
end
end