summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-01 18:10:41 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-10-01 18:10:49 (GMT)
commit6dac9b28fe6faeb275d561eec306f0eaa592fd3e (patch)
tree7cc5e728ac742a021d65328c010466e6822af90e
parentd1e859291f30011ef97cc9d912af051ad71b21df (diff)
parent22b3a1abd93742f551f99f655f57fcba81db0999 (diff)
downloadCMake-6dac9b28fe6faeb275d561eec306f0eaa592fd3e.zip
CMake-6dac9b28fe6faeb275d561eec306f0eaa592fd3e.tar.gz
CMake-6dac9b28fe6faeb275d561eec306f0eaa592fd3e.tar.bz2
Merge topic 'ci-test-external-max-parallel'
22b3a1abd9 ci: support a max parallelism for test-ext jobs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5310
-rw-r--r--.gitlab/ci/ctest_test_external.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab/ci/ctest_test_external.cmake b/.gitlab/ci/ctest_test_external.cmake
index d92b936..4ea060d 100644
--- a/.gitlab/ci/ctest_test_external.cmake
+++ b/.gitlab/ci/ctest_test_external.cmake
@@ -33,6 +33,11 @@ endif ()
include(ProcessorCount)
ProcessorCount(nproc)
+if (NOT "$ENV{CTEST_MAX_PARALLELISM}" STREQUAL "")
+ if (nproc GREATER "$ENV{CTEST_MAX_PARALLELISM}")
+ set(nproc "$ENV{CTEST_MAX_PARALLELISM}")
+ endif ()
+endif ()
if (CTEST_CMAKE_GENERATOR STREQUAL "Unix Makefiles")
set(CTEST_BUILD_FLAGS "-j${nproc}")