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

匆匆过客 提交于 2019-12-13 19:49:38

问题


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@mail.com to resolve testing problems.

回答1:


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



来源:https://stackoverflow.com/questions/36629644/cmakelists-txt-how-to-print-a-message-if-ctest-fails

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!