
Issue a deprecation warning on calls to `cmake_minimum_required` or
`cmake_policy` that set policies based on versions older than 3.10.
Note that the effective policy version includes `...<max>` treatment.
Update the check from commit 3a4791548d
(Deprecate compatibility with
CMake versions older than 3.5, 2023-02-09, v3.27.0-rc1~508^2).
7 lines
140 B
CMake
7 lines
140 B
CMake
include(RunCMake)
|
|
set(RunCMake_IGNORE_POLICY_VERSION_DEPRECATION ON)
|
|
|
|
run_cmake(CMP0068-OLD)
|
|
run_cmake(CMP0068-NEW)
|
|
run_cmake(CMP0068-WARN)
|