diff options
| author | star-hengxing <[email protected]> | 2023-03-10 12:58:36 +0800 |
|---|---|---|
| committer | star-hengxing <[email protected]> | 2023-03-10 12:58:36 +0800 |
| commit | a1565559f10335ac104ea3670a5180bd1ac5b88e (patch) | |
| tree | dd8af7a4a687628ad9a5d682b0a912bd3a5b93cb | |
| parent | 53e072790413cd48f1b5f9ede2a2714822f47846 (diff) | |
fix ninja opt
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 02c36ec2d..4d0fc0857 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -793,7 +793,8 @@ end -- do build for ninja function _build_for_ninja(package, configs, opt) opt = opt or {} - ninja.build(package, {}, {envs = opt.envs or buildenvs(package, opt)}) + opt.envs = opt.envs or buildenvs(package, opt) + ninja.build(package, {}, opt) end -- do build for cmake/build @@ -875,7 +876,8 @@ end -- do install for ninja function _install_for_ninja(package, configs, opt) opt = opt or {} - ninja.install(package, {}, {envs = opt.envs or buildenvs(package, opt)}) + opt.envs = opt.envs or buildenvs(package, opt) + ninja.install(package, {}, opt) end -- do install for cmake/build |
