mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-21 14:10:41 -06:00
Issue a deprecation warning on calls to `cmake_minimum_required` or
`cmake_policy` that set policies based on versions older than 3.5.
Note that the effective policy version includes `...<max>` treatment.
Update the check from commit 5845c218d7 (Deprecate compatibility with
CMake versions older than 2.8.12, 2020-06-12, v3.19.0-rc1~629^2).
15 lines
429 B
CMake
15 lines
429 B
CMake
include(RunCMake)
|
|
set(RunCMake_IGNORE_POLICY_VERSION_DEPRECATION ON)
|
|
|
|
run_cmake(CMP0054-OLD)
|
|
run_cmake(CMP0054-NEW)
|
|
run_cmake(CMP0054-WARN)
|
|
run_cmake(CMP0054-keywords-NEW)
|
|
run_cmake(CMP0054-keywords-OLD)
|
|
run_cmake(CMP0054-keywords-WARN)
|
|
run_cmake(CMP0054-duplicate-warnings)
|
|
run_cmake(CMP0054-policy-command-scope)
|
|
run_cmake(CMP0054-policy-foreach-scope)
|
|
run_cmake(CMP0054-policy-while-scope)
|
|
run_cmake(CMP0054-policy-nested-if)
|