summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorRedbeanw44602 <[email protected]>2025-07-27 22:30:40 +0800
committerRedbeanw44602 <[email protected]>2025-07-27 22:30:40 +0800
commitc47cad26a81ca775eecb0a9dc039cbba3ab93af1 (patch)
tree598e3ef7ca34c63b0b89ccedf9e8af28d1613edd /xmake/modules/package/tools/cmake.lua
parent3897a0f1b1859d1cea57d71a517e963674df2622 (diff)
update.
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 6be6b5952..3134fa8b4 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -1110,8 +1110,7 @@ function _build_for_ninja(package, configs, opt)
_fix_pdbdir_for_ninja(package)
ninja.build(package, {}, {envs = opt.envs or buildenvs(package, opt),
jobs = opt.jobs,
- target = opt.target,
- targets = opt.targets})
+ targets = opt.target or opt.targets})
end
-- do build for cmake/build