summaryrefslogtreecommitdiff
path: root/xmake/core/project/option.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-04-14 00:03:06 +0800
committerruki <[email protected]>2018-04-14 00:03:06 +0800
commit79c1eb71af25e810d421a790b5e9eab463450cfe (patch)
tree3598846b0024d6609fd6146ed6df6c0cad862fbe /xmake/core/project/option.lua
parenta8a05178346e5efb902aaef8c55264e130389e00 (diff)
add find_qt
Diffstat (limited to 'xmake/core/project/option.lua')
-rw-r--r--xmake/core/project/option.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/option.lua b/xmake/core/project/option.lua
index 468e402e0..5806ead1e 100644
--- a/xmake/core/project/option.lua
+++ b/xmake/core/project/option.lua
@@ -303,7 +303,7 @@ function option:set(name_or_info, ...)
if type(name_or_info) == "string" then
local args = ...
if args ~= nil then
- self._INFO[name_or_info] = table.unique(table.join(...))
+ self._INFO[name_or_info] = table.unwrap(table.unique(table.join(...)))
else
self._INFO[name_or_info] = nil
end
@@ -318,7 +318,7 @@ end
function option:add(name_or_info, ...)
if type(name_or_info) == "string" then
local info = table.wrap(self._INFO[name_or_info])
- self._INFO[name_or_info] = table.unique(table.join(info, ...))
+ self._INFO[name_or_info] = table.unwrap(table.unique(table.join(info, ...)))
elseif table.is_dictionary(name_or_info) then
for name, info in pairs(table.join(name_or_info, ...)) do
self:add(name, info)