summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-07 14:21:33 +0800
committerGitHub <[email protected]>2021-09-07 14:21:33 +0800
commitab7b371299bed8dcdf4ff3bc07e2443d40daaa10 (patch)
tree6834d03845be12777cf1bb9b39d7c6d83a3c892a /xmake/modules/package/tools/cmake.lua
parent55f7586eb8e91ccb9179b9c192039d6a3d228e11 (diff)
Update cmake.lua
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index c3998f0bc..b6c286e5f 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -30,7 +30,7 @@ import("package.tools.ninja")
-- get the number of parallel jobs
function _get_parallel_njobs(opt)
- return opt.jobs or option.get("jobs") or tostring(math.ceil(os.cpuinfo().ncpu * 3 / 2))
+ return opt.jobs or option.get("jobs") or tostring(os.default_njob())
end
-- translate paths