summaryrefslogtreecommitdiff
path: root/xmake/modules/package/manager
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/package/manager')
-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 1547da40a..24500cc2a 100644
--- a/xmake/modules/package/manager/vcpkg/find_package.lua
+++ b/xmake/modules/package/manager/vcpkg/find_package.lua
@@ -82,8 +82,8 @@ function main(name, opt)
-- find the package info file, e.g. zlib_1.2.11-3_x86-windows[-static].list
local triplet = arch .. "-" .. plat
- local configs = opt.configs
- if plat == "windows" and configs and configs.shared ~= true then
+ local configs = opt.configs or {}
+ if plat == "windows" and configs.shared ~= true then
triplet = triplet .. "-static"
if configs.vs_runtime and configs.vs_runtime:startswith("MD") then
triplet = triplet .. "-md"