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