[CMake] Does a ctested build work with make -j

Matthew Woehlke mw_triad at users.sourceforge.net
Mon Jan 27 18:05:56 EST 2014


On 2014-01-27 17:12, Bill Hoffman wrote:
> On 1/27/2014 1:42 PM, John Cary wrote:
>> It seems that after configuring with ctest enabled,
>>
>>    make -j4
>>      does 4 builds at once
>>    make ExperimentalStart ExperimentalBUild -j4
>>      does only one build at a time.
>>
>> Is this behavior expected?
>>
>> Is there a way to get back to parallel builds when using ctest for the
>> build?
>
> You want to add the -j to this cache variable:
> MAKECOMMAND

What would be the difference in this context between MAKECOMMAND and 
CMAKE_MAKE_PROGRAM? I was just reading somewhere¹ that prefers the latter...

(¹ https://github.com/Slicer/Slicer/commit/38905c9)

-- 
Matthew



More information about the CMake mailing list