[CMake] multiple cvs updates for continuous build
Clinton Stimpson
clinton at elemtech.com
Thu Jul 2 10:28:08 EDT 2009
On 07/02/2009 01:57 AM, Bram de Greve wrote:
> Hi,
>
> I have a large project that combines the sources of different CVS
> repositories/projects in one build.
>
> I would like to perform a continuous build on this, but AFAIK it's
> possible to do only one cvs update on this. So the continuous build would
> "listen" to only one of the CVS projects.
>
> Is there a way I would be able to extend this listener mechanism to the
> different CVS projects?
>
> Thanks in advance,
> Bram
>
>
You can do it like this:
....
WHILE (${CTEST_ELAPSED_TIME} LESS 36000)
SET (START_TIME ${CTEST_ELAPSED_TIME})
CTEST_START (Continuous)
CTEST_UPDATE (SOURCE "${CTEST_SOURCE_DIRECTORY}" RETURN_VALUE res1)
CTEST_UPDATE (SOURCE "${OTHER_SOURCE_DIRECTORY}" RETURN_VALUE res2)
IF(res1 GREATER 0 OR res2 GREATER 0)
CTEST_CONFIGURE()
CTEST_BUILD()
CTEST_TEST()
CTEST_SUBMIT()
....
Clint
More information about the CMake
mailing list