summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/batchcmds.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/pack/batchcmds.lua')
-rw-r--r--xmake/plugins/pack/batchcmds.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/pack/batchcmds.lua b/xmake/plugins/pack/batchcmds.lua
index 3d9229cce..8091134b2 100644
--- a/xmake/plugins/pack/batchcmds.lua
+++ b/xmake/plugins/pack/batchcmds.lua
@@ -186,13 +186,13 @@ end
-- on install source target command
function _on_target_installcmd_source(target, batchcmds_, opt)
local package = opt.package
- batchcmds_:vrunv("xmake", {"install", "-o", path(package:install_rootdir()), target:name()})
+ batchcmds_:vrunv("xmake", {"install", "-P", ".", "-y", "-o", path(package:install_rootdir()), target:name()})
end
-- on build target command
function _on_target_buildcmd(target, batchcmds_, opt)
local package = opt.package
- batchcmds_:vrunv("xmake", {"build", "-y", target:name()})
+ batchcmds_:vrunv("xmake", {"build", "-P", ".", "-y", target:name()})
end
-- on install target command