summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-10-17 22:13:22 +0800
committerruki <[email protected]>2016-10-17 22:13:22 +0800
commit5c98f1edc2f521fd882d1796bdb043492ce138fe (patch)
tree99428c11a4856c7b942d014637380398ea6487cd
parentc13a5bc0c081d6c312b58774bb07d5c39b8c2b8c (diff)
fix the packge macro
-rwxr-xr-xxmake/plugins/macro/macros/package.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/plugins/macro/macros/package.lua b/xmake/plugins/macro/macros/package.lua
index d68bf112f..a909bd776 100755
--- a/xmake/plugins/macro/macros/package.lua
+++ b/xmake/plugins/macro/macros/package.lua
@@ -74,6 +74,9 @@ function main(argv)
-- load project
project.load()
+ -- enter the project directory
+ os.cd(project.directory())
+
-- the outputdir directory
local outputdir = args.outputdir or config.get("buildir")