summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/xrepo/action/install.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua
index 19d594178..6064c65e9 100644
--- a/xmake/modules/private/xrepo/action/install.lua
+++ b/xmake/modules/private/xrepo/action/install.lua
@@ -250,9 +250,9 @@ function _install_packages(packages)
if mode == "debug" then
extra.debug = true
end
- if kind == "shared" then
+ if option.get("kind") then
extra.configs = extra.configs or {}
- extra.configs.shared = true
+ extra.configs.shared = kind == "shared"
end
local configs = option.get("configs")
if configs then