CMAKE_SUPPRESS_REGENERATION

From Get docs
Cmake/docs/3.21/variable/cmake suppress regeneration


CMAKE_SUPPRESS_REGENERATION

New in version 3.12.


If CMAKE_SUPPRESS_REGENERATION is OFF, which is default, then CMake adds a special target on which all other targets depend that checks the build system and optionally re-runs CMake to regenerate the build system when the target specification source changes.

If this variable evaluates to ON at the end of the top-level CMakeLists.txt file, CMake will not add the regeneration target to the build system or perform any build system checks.

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