[CMake] CMakeLists.txt: How to print a message if ctest fails?

Muhammad Osama osama94 at gmail.com
Fri Apr 15 14:53:22 EDT 2016


Is there a way I can setup CMakeLists.txt to print a message if ctest tests
fail? For example:

cmake ..
make
ctest // fails
message output: Please contact xyz at mail.com to resolve testing problems.

​Note the message output is not for cmake but for ctest.​

--​​
Muhammad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160415/c32ea620/attachment.html>


More information about the CMake mailing list