mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -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.
7 lines
247 B
CMake
7 lines
247 B
CMake
cmake_minimum_required(VERSION 3.10...3.11)
|
|
message("CMAKE_MINIMUM_REQUIRED_VERSION='${CMAKE_MINIMUM_REQUIRED_VERSION}'")
|
|
foreach(policy CMP0071 CMP0072 CMP0073)
|
|
cmake_policy(GET ${policy} status)
|
|
message("${policy}='${status}'")
|
|
endforeach()
|