diff options
author | Brad King <brad.king@kitware.com> | 2023-02-09 09:35:22 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-02-11 06:25:11 -0500 |
commit | 3a4791548dfeb69e645e8fea8e669473d4f868cf (patch) | |
tree | cacff3748cdff410a5e0e6219db92f4b83535806 /Tests/RunCMake/CMP0041 | |
parent | 1edf1385064d67885bafe09d472f82bf62d34641 (diff) | |
download | cmake-3a4791548dfeb69e645e8fea8e669473d4f868cf.tar.gz |
Deprecate compatibility with CMake versions older than 3.5
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).
Diffstat (limited to 'Tests/RunCMake/CMP0041')
-rw-r--r-- | Tests/RunCMake/CMP0041/RunCMakeTest.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0041/RunCMakeTest.cmake b/Tests/RunCMake/CMP0041/RunCMakeTest.cmake index f47bb2ee31..93378c20aa 100644 --- a/Tests/RunCMake/CMP0041/RunCMakeTest.cmake +++ b/Tests/RunCMake/CMP0041/RunCMakeTest.cmake @@ -1,4 +1,5 @@ include(RunCMake) +set(RunCMake_IGNORE_POLICY_VERSION_DEPRECATION ON) # Protect tests from running inside the default install prefix. set(RunCMake_TEST_OPTIONS "-DCMAKE_INSTALL_PREFIX=${RunCMake_BINARY_DIR}/NotDefaultPrefix") |