summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")