diff options
| author | ruki <[email protected]> | 2022-10-20 00:49:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-10-20 00:49:17 +0800 |
| commit | 7f7cd68284676f7969d99e2e7d54b91275ef5569 (patch) | |
| tree | 46760934e310e77595acc9141198552e43842459 /xmake/core/package/package.lua | |
| parent | a89822b7530c98914109cecc770dfef15e707e23 (diff) | |
find components from brew
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 0ccdf42b0..fb52da8fd 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1515,8 +1515,9 @@ function _instance:_fetch_library(opt) local components_extsources = {} for name, comp in pairs(self:components()) do for _, extsource in ipairs(table.wrap(comp:get("extsources"))) do - if fetchname:split("::")[1] == extsource:split("::")[1] then - components_extsources[name] = extsource + local extsource_info = extsource:split("::") + if fetchname:split("::")[1] == extsource_info[1] then + components_extsources[name] = extsource_info[2] break end end |
