From 69c80efa1ce54ef15830162fb385e963ba824415 Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Tue, 1 Sep 2026 12:44:18 +0200 Subject: [PATCH] [cmake] set CMP0218 policy to NEW This exclude special handling for `CMAKE_WARN_DEPRECATED` and `CMAKE_ERROR_DEPRECATED` variables and suppress cmake 4.4 warnings when global list of all variables is scanned --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a0245a5cdaba0..8b006c509150c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,7 @@ set(policy_new CMP0072 CMP0076 CMP0077 CMP0079 CMP0135 # Timestamps of downloaded archives are set to time of extraction CMP0144 # _ROOT (converted to upper case) can be used to search for dependencies CMP0156 CMP0179 #deduplicate static libraries when linker supports it + CMP0218 # no special handling for `CMAKE_WARN_DEPRECATED` and `CMAKE_ERROR_DEPRECATED` variables ) foreach(policy ${policy_new}) if(POLICY ${policy})