diff options
| author | ruki <[email protected]> | 2021-12-17 00:55:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-12-17 00:55:21 +0800 |
| commit | 0fdd42e56f478591a4876866af833273f2cc244f (patch) | |
| tree | a3600c55c3372d5cb7a420b3e8dc756f91008867 /xmake | |
| parent | 0644c09d6c75a669f976f8d4bf67041c83c3f1d4 (diff) | |
add vcpkg tests
Diffstat (limited to 'xmake')
| -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 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" |
