
Provide packagers and end users with a way to try configuring projects that have not been updated to set their policy version to a supported level. Closes: #26698
8 lines
276 B
CMake
8 lines
276 B
CMake
set(CMAKE_POLICY_VERSION_MINIMUM 3.10)
|
|
cmake_minimum_required(VERSION 3.1...3.4)
|
|
message("CMAKE_MINIMUM_REQUIRED_VERSION='${CMAKE_MINIMUM_REQUIRED_VERSION}'")
|
|
foreach(policy CMP0071 CMP0072)
|
|
cmake_policy(GET ${policy} status)
|
|
message("${policy}='${status}'")
|
|
endforeach()
|