mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -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).
17 lines
507 B
CMake
17 lines
507 B
CMake
include(RunCMake)
|
|
set(RunCMake_IGNORE_POLICY_VERSION_DEPRECATION ON)
|
|
|
|
run_cmake(CMP0026-WARN)
|
|
run_cmake(CMP0026-OLD)
|
|
run_cmake(CMP0026-NEW)
|
|
run_cmake(CMP0026-IMPORTED)
|
|
run_cmake(CMP0026-CONFIG-LOCATION-NEW)
|
|
run_cmake(CMP0026-CONFIG-LOCATION-OLD)
|
|
run_cmake(CMP0026-CONFIG-LOCATION-WARN)
|
|
run_cmake(CMP0026-LOCATION-CONFIG-NEW)
|
|
run_cmake(CMP0026-LOCATION-CONFIG-OLD)
|
|
run_cmake(CMP0026-LOCATION-CONFIG-WARN)
|
|
run_cmake(ObjlibNotDefined)
|
|
run_cmake(LOCATION-and-TARGET_OBJECTS)
|
|
run_cmake(clear-cached-information)
|