diff options
| author | star-hengxing <[email protected]> | 2023-03-10 15:33:21 +0800 |
|---|---|---|
| committer | star-hengxing <[email protected]> | 2023-03-10 15:33:21 +0800 |
| commit | 74201f1e162cb4286d76dc9e90a38d3766330b6f (patch) | |
| tree | fef43dbab5393a72d0d3f97c4c854babc8fc02c0 | |
| parent | a1565559f10335ac104ea3670a5180bd1ac5b88e (diff) | |
improve opt
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 4d0fc0857..da104f8f1 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -793,8 +793,10 @@ end -- do build for ninja function _build_for_ninja(package, configs, opt) opt = opt or {} - opt.envs = opt.envs or buildenvs(package, opt) - ninja.build(package, {}, opt) + ninja.build(package, {}, {envs = opt.envs or buildenvs(package, opt), + jobs = opt.jobs, + buildir = opt.buildir, + target = opt.target}) end -- do build for cmake/build @@ -876,8 +878,10 @@ end -- do install for ninja function _install_for_ninja(package, configs, opt) opt = opt or {} - opt.envs = opt.envs or buildenvs(package, opt) - ninja.install(package, {}, opt) + ninja.install(package, {}, {envs = opt.envs or buildenvs(package, opt), + jobs = opt.jobs, + buildir = opt.buildir, + target = opt.target}) end -- do install for cmake/build |
