Files
CMake/Tests/RunCMake/Make/CTestJobServer.make
Brad King 5de1e21659 ctest: Allow passing -j without value to choose a contextual default
Under job server integration, added by commit 80fe56c481 (ctest: Add
support for running under a make job server on POSIX systems,
2023-11-15, v3.29.0-rc1~324^2), use a very high default so that
parallelism is effectively limited only by available job server tokens.

Otherwise, choose a default limit based on the number of processors.

Also allow passing `0` to specify unbounded parallelism.

Fixes: #25739
2024-03-10 11:41:39 -04:00

12 lines
181 B
Makefile

NoPipe:
env MAKEFLAGS= $(CMAKE_CTEST_COMMAND) -j0
.PHONY: NoPipe
NoTests:
+$(CMAKE_CTEST_COMMAND) -j -R NoTests
.PHONY: NoTests
Tests:
+$(CMAKE_CTEST_COMMAND) -j
.PHONY: Tests