[CMake] Build failure alerts

Alexander Neundorf a.neundorf-work at gmx.net
Mon Mar 9 19:21:36 EDT 2009


On Wednesday 04 March 2009, Iwan Aucamp wrote:
> Hi
>
> Would it be possible to have CMAKE run a custom command with following
> paramters if the build fails to compile:

In general cmake is not running when something is compiled. What do you want 
to do ?

>
>     * source file
>     * line number
>
> So that the above can be used by a script to determine change set and
> commiter and then send an email to the commiter to notify him of the
> failure.

Did you have a look at ctest/cdash (http://www.cdash.org), I think it does 
what you want.
You can set up a regular build, and if something fails, the one who committed 
something gets an email.

Alex


More information about the CMake mailing list