diff options
| author | ruki <[email protected]> | 2022-09-28 09:02:16 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-28 09:02:16 +0800 |
| commit | 575706825c48cfb9af0d22cc88ff4f826a917455 (patch) | |
| tree | b21960c8edb15e58cd8b9a870f13a106ea1a47e4 | |
| parent | d0929199efdc1ae6b7ef344ae6f78b81706e04e6 (diff) | |
| parent | dad615a7b8757d35c872930a32d4fc1f36d3eaae (diff) | |
Merge pull request #2880 from cyfdecyf/xrepo-install-kind-static
xrepo install: set "shared" config if kind is specified.
| -rw-r--r-- | xmake/modules/private/xrepo/action/install.lua | 4 |
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 |
