diff options
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index ebc778c3a..4b72d5c2e 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -80,7 +80,7 @@ function target:set(name_or_info, ...) self._INFO[name_or_info] = nil end elseif type(name_or_info) == "table" and #name_or_info == 0 then - for name, info in pairs(name_or_info) do + for name, info in pairs(table.join(name_or_info, ...)) do self:set(name, info) end end @@ -91,7 +91,7 @@ function target:add(name_or_info, ...) if type(name_or_info) == "string" then self._INFO[name_or_info] = table.unique(table.join2(table.wrap(self._INFO[name_or_info]), ...)) elseif type(name_or_info) == "table" and #name_or_info == 0 then - for name, info in pairs(name_or_info) do + for name, info in pairs(table.join(name_or_info, ...)) do self:add(name, info) end end |
