CTEST_RUN_CURRENT_SCRIPT

From Get docs
Cmake/docs/3.21/variable/ctest run current script


CTEST_RUN_CURRENT_SCRIPT

New in version 3.11.


Setting this to 0 prevents ctest(1) from being run again when it reaches the end of a script run by calling ctest -S.

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