summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-29 22:47:38 +0800
committerruki <[email protected]>2021-09-29 22:47:38 +0800
commit913fcb7fbe40b009eb6759dd00b37ece56ef72a8 (patch)
treed9997a6907cf162e47368b0f501938054c7aa731 /xmake/modules/package/tools/cmake.lua
parent9b11147b98d5b51bc5064757c7f3629e5ad37cbb (diff)
support to build embed package with cmake
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 048ff5909..1134339d0 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -665,7 +665,7 @@ function build(package, configs, opt)
opt = opt or {}
-- enter build directory
- local buildir = opt.buildir or "build_" .. hash.uuid4():split('%-')[1]
+ local buildir = opt.buildir or package:buildir()
os.mkdir(path.join(buildir, "install"))
local oldir = os.cd(buildir)
@@ -724,7 +724,7 @@ function install(package, configs, opt)
opt = opt or {}
-- enter build directory
- local buildir = opt.buildir or "build_" .. hash.uuid4():split('%-')[1]
+ local buildir = opt.buildir or package:buildir()
os.mkdir(path.join(buildir, "install"))
local oldir = os.cd(buildir)