Replace ctest command with “ctest --output-on-failure” permanently for a specific project in CMakeLists.txt
问题 I have found that generic ctest command doesn't give much information about the tests, so I would like to add ctest --output-on-failure but not have the users to worry about the flag. I want them just to cmake , make the project and run ctest and it should run ctest with the --output-on-failure flag. Is it possible to do that in CMakeLists.txt? EDIT: Output of env CTEST_OUTPUT_ON_FAILURE=1 make test 4/13 Test #4: TEST_SSSP ........................***Failed Required regular expression not