From 3701817083762f23d3b1da04f0d833d16dfc9a13 Mon Sep 17 00:00:00 2001 From: Ajay Raj Date: Thu, 16 Jul 2026 03:53:15 +0530 Subject: [PATCH] cmake: set policy CMP0218 to NEW to suppress deprecation warning Added policy CMP0218 to suppress deprecation warnings. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0dd02b0e3..6cf4ab51fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,10 @@ if(POLICY CMP0148) cmake_policy(SET CMP0148 OLD) # CMake 3.27+: use CMake FindPythonInterp and FindPythonLib if available. endif() +if(POLICY CMP0218) + cmake_policy(SET CMP0218 NEW) # Suppress warning for CMAKE_WARN_DEPRECATED in CMake 4.4.0+ +endif() + # # Configure OpenCV CMake hooks #