summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/package/tools/xmake.lua')
-rw-r--r--xmake/modules/package/tools/xmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index b9cf605ce..c779a9ff5 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -526,9 +526,9 @@ function install(package, configs, opt)
-- do install
argv = {"install", "-y", "--nopkgs", "-o", package:installdir()}
_set_builtin_argv(package, argv)
- local target = table.wrap(opt.target)
- if #target ~= 0 then
- table.join2(argv, target)
+ local targets = table.wrap(opt.target)
+ if #targets ~= 0 then
+ table.join2(argv, targets)
end
os.vrunv(os.programfile(), argv, {envs = envs})
end