parallel build with ctest

We use for our build pipeline ctest (on Linux using make)

ctest -D ExperimentalBuild --track $CDASH_TRACK -V

Is there a way to run it in parallel (make -j)?

I only found this 15 years old answer and wonder if there isn’t something updated?

The ctest -D command line interface is probably not the most flexible these days as many new features that have been added are missing. I would suggest using a ctest -S script where you can use ctest_build(PARALLEL_LEVEL).

1 Like

Thanks for the hint. I’ll go this way.