[CMake] parallel builds (ctest_build() ) for dashboards ?
Bill Hoffman
bill.hoffman at kitware.com
Mon Nov 30 15:52:05 EST 2009
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
I don't think we will add the make tool smarts into ctest_build to
handle this as it depends on which make you are actually using.
-Bill
More information about the CMake
mailing list