mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
Teach `cmake_minimum_required` and `cmake_policy(VERSION)` to support a version range of the form `<min>[...<max>]`. Define this to mean that version `<min>` is required, but known policies up to those introduced by `<max>` will be set to `NEW`. This will allow projects to easily specify a range of versions for which they have been updated.
9 lines
409 B
ReStructuredText
9 lines
409 B
ReStructuredText
policy-version-range
|
|
--------------------
|
|
|
|
* The :command:`cmake_minimum_required` and :command:`cmake_policy(VERSION)`
|
|
commands now accept a version range using the form ``<min>[...<max>]``.
|
|
The ``<min>`` version is required but policies are set based on the
|
|
``<max>`` version. This allows projects to specify a range of versions
|
|
for which they have been updated and avoid explicit policy settings.
|