[CMake] CTest return value in the case of an build error

Bill Hoffman bill.hoffman at kitware.com
Wed Dec 10 13:07:22 EST 2008


Clinton Stimpson wrote:
> 
> +1 for this. I ended up having to parse the xml files myself, as I 
> couldn't find an easier way to get the info I wanted.
> I submitted a request for this.
> http://public.kitware.com/Bug/view.php?id=8277
> 
> I was trying to use ctest as a replacement for a non-portable shell 
> script that did nightly testing.
> 

All of the commands have RETURN_VALUE...

ctest_build(..  RETURN_VALUE val)
ctest_update( ..  RETURN_VALUE val)
ctest_test(..  RETURN_VALUE val)
ctest_configure(..  RETURN_VALUE val)

It is in the documentation for the commands...

Is that what you want?

-Bill


More information about the CMake mailing list