CMakeLists.txt: how to print a message if ctest fails?

Is there a way to configure CMakeLists.txt to print a message if ctest tests ctest ? For example:

 cmake .. make ctest // fails message output: Please contact xyz@mail.com to resolve testing problems. 
+1
cmake ctest
source share
1 answer

You can use message , which can help you output information to the configuration log process.

0
source share

All Articles