ctest: Make "jobs" argument in "ctest --parallel <jobs>" optional
Currently cmake
has a command line parameter parallel
with automatic processor count guessing:
--parallel [<jobs>], -j [<jobs>]
On the other hand, with ctest
you always need to define the processor count:
-j <jobs>, --parallel <jobs>
This is an asynchrony in the interfaces. It is especially problematic since ctest --parallel
is executed without complaint if the jobs
argument is missing. While cmake
uses all processor cores in this case, ctest
uses only one core, so it ignores the parameter.
Edited by Brad King