Add CMAKE_POLICY_VERSION_MINIMUM environment variable

Extend commit 1a35351125 (Add CMAKE_POLICY_VERSION_MINIMUM to help
configure outdated projects, 2025-02-13, v4.0.0-rc1~12^2) with an
environment variable to initialize the cache entry.  That will make it
easier to use when `cmake` is invoked under layers of scripting.

Closes: #26715
This commit is contained in:
Brad King
2025-02-20 16:30:51 -05:00
parent 04721acc6c
commit 33856b1d62
22 changed files with 89 additions and 0 deletions
@@ -0,0 +1,11 @@
CMAKE_POLICY_VERSION_MINIMUM
----------------------------
.. versionadded:: 4.0
.. include:: ENV_VAR.txt
The default value for :variable:`CMAKE_POLICY_VERSION_MINIMUM` when there
is no explicit configuration given on the first run while creating a new
build tree. On later runs in an existing build tree the value persists in
the cache as :variable:`CMAKE_POLICY_VERSION_MINIMUM`.