diff options
| author | ruki <[email protected]> | 2021-03-11 00:29:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-11 00:29:22 +0800 |
| commit | 6620104d73da3f0ca697276fea4ed897e45f35a2 (patch) | |
| tree | d8eaad6a4e3b76ad4b8b24bd9433eb089ab465bd /xmake/core/package/package.lua | |
| parent | dc59672340dc9d481d8aef31e26dc2709205b0b1 (diff) | |
improve fetchdeps
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index b798bbc10..7a6fd4fe3 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1207,12 +1207,14 @@ function _instance:fetchdeps() local total = #orderdeps for idx, _ in ipairs(orderdeps) do local dep = orderdeps[total + 1 - idx] - local depinfo = dep:fetch() - if depinfo then - for name, values in pairs(depinfo) do - if name ~= "license" and name ~= "version" then - fetchinfo[name] = table.wrap(fetchinfo[name]) - table.join2(fetchinfo[name], values) + if dep:is_library() then + local depinfo = dep:fetch() + if depinfo then + for name, values in pairs(depinfo) do + if name ~= "license" and name ~= "version" then + fetchinfo[name] = table.wrap(fetchinfo[name]) + table.join2(fetchinfo[name], values) + end end end end |
