cmake: also set CTEST_PARALLEL_LEVEL

This commit is contained in:
Matthew Bauer 2018-11-19 18:14:44 -06:00
parent 285eb9a894
commit 70e2b0bef0

View File

@ -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 .