[CMake] parallel builds (ctest_build() ) for dashboards ?

Bill Hoffman bill.hoffman at kitware.com
Tue Dec 1 12:30:14 EST 2009


Sean McBride wrote:
> On 11/30/09 3:52 PM, Bill Hoffman said:
> 
>> David Cole wrote:
>>> In the script, prior to the ctest_build call, do:
>>> set(CTEST_BUILD_FLAGS -j4)
>>>
>>> (only works with make that supports -j, obviously...)
>>>
>> We often do this in our scripts:
>>
>> set(CTEST_BUILD_COMMAND "make -j4 -i")
>> MAKECOMMAND:STRING=/usr/bin/make -i -j4
> 
> Is that better/worse/equivalent to David's suggestion of:
> 
> set(CTEST_BUILD_FLAGS -j4)  ?
> 

Worse most likely. :)

Both should work.

-Bill


More information about the CMake mailing list