summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/action/utils.lua')
-rw-r--r--xmake/modules/private/action/utils.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/action/utils.lua b/xmake/modules/private/action/utils.lua
index 24a5e3a46..39045d204 100644
--- a/xmake/modules/private/action/utils.lua
+++ b/xmake/modules/private/action/utils.lua
@@ -74,9 +74,9 @@ end
function get_targets(targetnames, opt)
opt = opt or {}
- -- select the explicitly given targets
+ -- select the explicitly given targets (table.wrap to always get a list back)
if type(targetnames) == "table" or (type(targetnames) == "string" and not targetnames:startswith("__")) then
- return assert(check_targetnames(targetnames))
+ return assert(check_targetnames(table.wrap(targetnames)))
end
-- otherwise select the default/all/group targets