1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

Merge pull request #29529 from ajayraj30002:ajayraj30002-patch-3

cmake: set policy CMP0218 to NEW to suppress deprecation warning
This commit is contained in:
Alexander Smorkalov
2026-07-21 12:39:10 +03:00
committed by GitHub
+4
View File
@@ -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
#