[CMake] parallel builds for ctest

David Cole david.cole at kitware.com
Fri Feb 15 18:44:37 EST 2008


One of the VTK dashboards does it by giving a custom MAKECOMMAND to the
initial cache:MAKECOMMAND:STRING=/usr/bin/make -i -j 2

See here for the full script:
http://www.vtk.org/Testing/Sites/hythloth.kitware/Linux-gcc41/20080215-0300-Nightly/Notes.html


HTH,
David


On 2/15/08, James Bigler <bigler at cs.utah.edu> wrote:
>
> Is it possible to get ctest to do parallel builds on systems that support
> it?
>
> I'm using a configuration file that looks something like this:
>
> # Where the source code lives
> SET (CTEST_SOURCE_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}/..")
> SET (CTEST_BINARY_DIRECTORY "${CTEST_SOURCE_DIRECTORY}/build-ctest-sse")
>
> # Make sure we always reconfigure cmake stuff from scratch and don't
> # rely on previously built libraries
> SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
>
> SET (CTEST_CMAKE_COMMAND "cmake")
> SET (CTEST_CVS_COMMAND "svn")
>
> # A smoke test only builds the code and doesn't run any tests, so we
> # exclude all tests here
> #SET (CTEST_COMMAND "ctest -D Nightly")
> SET (CTEST_COMMAND "ctest -D Experimental")
>
> SET(CTEST_INITIAL_CACHE "
>    BUILDNAME:STRING=SSE
>    BUILD_TESTING:BOOL=ON
> ")
>
>
> James
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080215/620b5d8d/attachment.html


More information about the CMake mailing list