summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_SUPPRESS_REGENERATION.rst
blob: 48490ffbc54447d1449876c7c03bc25fdebae90a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
CMAKE_SUPPRESS_REGENERATION
---------------------------

.. versionadded:: 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.