问题
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