summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorRedbeanw44602 <[email protected]>2025-07-28 15:15:23 +0800
committerRedbeanw44602 <[email protected]>2025-07-28 15:15:23 +0800
commit650b30b94c8a5a0a0e6113cf4e7bc4bc5e50904c (patch)
treec362291b301892c15f2b277630d3ffc95cd71928 /xmake/modules/package/tools/cmake.lua
parent2c38d7dc3d9c1eb90bb481968918170f5d127237 (diff)
fix.
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 2ce3dbd3e..b677a8f0f 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -1110,7 +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,
- targets = opt.target or opt.targets})
+ targets = opt.targets or opt.target})
end
-- do build for cmake/build
@@ -1199,7 +1199,7 @@ function _install_for_ninja(package, configs, opt)
_fix_pdbdir_for_ninja(package)
ninja.install(package, {}, {envs = opt.envs or buildenvs(package, opt),
jobs = opt.jobs,
- targets = opt.target or opt.targets})
+ targets = opt.targets or opt.target})
end
-- do install for cmake/build