Files
CMake/Tests/RunCMake/cmake_minimum_required/Range.cmake
Brad King 45408b5ea1 cmake_minimum_required: Optionally set policies with version range
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.
2018-03-21 08:00:28 -04:00

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()