From a28dd375059ef2423e9f713d57aa5a207dc4693b Mon Sep 17 00:00:00 2001 From: Hoildkv <42310255+xq114@users.noreply.github.com> Date: Wed, 4 Aug 2021 15:34:47 +0800 Subject: add kind as a default xmake.install augument --- xmake/modules/package/tools/xmake.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index e1e3ac4b0..0c7d9c294 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -46,6 +46,7 @@ function _get_configs(package, configs) table.insert(configs, "--plat=" .. package:plat()) table.insert(configs, "--arch=" .. package:arch()) table.insert(configs, "--mode=" .. (package:is_debug() and "debug" or "release")) + table.insert(configs, "--kind=" .. (package:config("shared") and "shared" or "static")) if package:is_plat("windows") then local vs_runtime = package:config("vs_runtime") if vs_runtime then -- cgit v1.3.1