From 70e2b0bef065b1b9e68f8a86f8fc619ed3c6613e Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Mon, 19 Nov 2018 18:14:44 -0600 Subject: [PATCH] cmake: also set CTEST_PARALLEL_LEVEL --- pkgs/development/tools/build-managers/cmake/setup-hook.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/tools/build-managers/cmake/setup-hook.sh b/pkgs/development/tools/build-managers/cmake/setup-hook.sh index 42b4999cfba4..f095103ee044 100755 --- a/pkgs/development/tools/build-managers/cmake/setup-hook.sh +++ b/pkgs/development/tools/build-managers/cmake/setup-hook.sh @@ -16,6 +16,9 @@ cmakeConfigurePhase() { runHook preConfigure export CTEST_OUTPUT_ON_FAILURE=1 + if [ -n "${enableParallelChecking-1}" ]; then + export CTEST_PARALLEL_LEVEL=$NIX_BUILD_CORES + fi if [ -z "$dontFixCmake" ]; then fixCmakeFiles .