[CMake] CTest - Speed Optimization
Stephen Kelly
steveire at gmail.com
Thu Oct 31 13:17:43 EDT 2013
Alexander Neundorf wrote:
> On Thursday 31 October 2013, Olaf Ryder wrote:
>> Greetings,
>>
>> I'm looking for ways to speed up CTest runs (the Experimental target). It
>> would appear the majority of the time is spent during the build step.
>>
>> 1) What exactly is happening during the Experimental build step?
>> 2) How does CTest know what targets to build within a complex project?
>
> I think it builds everything.
Everything except the EXCLUDE_FROM_ALL targets.
>> 3) Is there a way to get verbose output of what's going on during the
>> various steps?
>
> Did you try ctest -V or, ctest -V -VV ?
>
> There is a -j flag for ctest, which at enables parallel testing. Not sure
> whether it enables also parallel building.
I don't know, but I hope not. That wouldn't be a good idea because it would
try to do N*N things at once instead of N things at once, with make.
Thanks,
Steve.
More information about the CMake
mailing list