CTEST_OUTPUT_ON_FAILURE

From Get docs
Cmake/docs/3.21/envvar/ctest output on failure


CTEST_OUTPUT_ON_FAILURE

This is a CMake Environment Variable. Its initial value is taken from the calling process environment.

Boolean environment variable that controls if the output should be logged for failed tests. Set the value to 1, True, or ON to enable output on failure. See ctest(1) for more information on controlling output of failed tests.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/envvar/CTEST_OUTPUT_ON_FAILURE.html