CMake 4.0, released on March 28, 2025, can stop an older project during configuration because its build files request policy compatibility that the new tool no longer supports. Calls to cmake_minimum_required() or cmake_policy() that set a policy version below 3.5 now produce an error. That does not mean a project must require every user to install CMake 4.0: the release preserves a way to state an older minimum executable version while selecting newer policy behavior. This retrospective uses official CMake v4.0.0 release-tagged documentation retrieved in 2026; March 28 is the release date, not a separately established first-publication date for each document. [S1][S6][S8]

The distinction lives in the VERSION argument. In the form <min>...<policy_max>, the first number sets the oldest CMake executable the project requires; the second sets the policy version. CMake stops if its running version is below the minimum. The policy version instead selects how it handles behavior changes: policies known to that executable and introduced through the selected version use their NEW behavior. Changing that number selects different behavior; it does not verify that the build works. [S6][S7]

The range syntax can preserve support for older installations. CMake's command documentation says releases before 3.12 ignore the upper part and continue to base policy handling on the minimum. Kitware's 4.0 announcement explicitly points maintainers to this route. For maintainers, the task is to test a supported policy level while retaining an older executable minimum where needed. Raising the minimum to 4.0 would impose a separate requirement on users; it is not the only response to the policy-version error. [S1][S6][S7]

Packagers who cannot immediately change upstream build files get another option. New in 4.0, CMAKE_POLICY_VERSION_MINIMUM can raise the policy version externally. The documented cache setting, -DCMAKE_POLICY_VERSION_MINIMUM=3.5, lets a user try configuring a project whose own declaration is older. The matching environment variable initializes that cache entry in new build trees. This is a compatibility attempt, not a promise: selecting newer policy behavior can expose assumptions in the existing build files. Configuration, compilation and the project's tests still need to be checked. [S5][S7]

CMake's documentation says a project should not use CMAKE_POLICY_VERSION_MINIMUM in its own CMake code to set its own policy version; it should use cmake_minimum_required() or cmake_policy(). But a parent project may set the variable before add_subdirectory() brings in a third-party project, allowing a policy adjustment without editing that dependency. For an enterprise build with bundled source dependencies, that separates a local packaging intervention from the dependency maintainer's own migration. [S5]

Clearing the error need not clear every warning. The 4.0.0 documentation distinguishes the removed compatibility below 3.5 from the deprecation of policy versions below 3.10, which already produces a warning in CMake 3.31 and above. A 3.5 override can get past the former threshold while leaving the latter warning. [S5][S8]

Source documents

  1. CMake 4.0.0 available for downloadhttps://www.kitware.com/cmake-4-0-0-available-for-download/
  2. CMAKE_POLICY_VERSION_MINIMUM — v4.0.0 source documentationhttps://raw.githubusercontent.com/Kitware/CMake/v4.0.0/Help/variable/CMAKE_POLICY_VERSION_MINIMUM.rst
  3. cmake_minimum_required — v4.0.0 source documentationhttps://raw.githubusercontent.com/Kitware/CMake/v4.0.0/Help/command/cmake_minimum_required.rst
  4. Policy version semantics — v4.0.0 included documentationhttps://raw.githubusercontent.com/Kitware/CMake/v4.0.0/Help/command/POLICY_VERSION.txt
  5. Deprecated policy versions — v4.0.0 included documentationhttps://raw.githubusercontent.com/Kitware/CMake/v4.0.0/Help/command/DEPRECATED_POLICY_VERSIONS.txt