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

Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Smorkalov 8d69623051 Merge pull request #29529 from ajayraj30002:ajayraj30002-patch-3
cmake: set policy CMP0218 to NEW to suppress deprecation warning
2026-07-21 12:39:10 +03:00
Ajay Raj 3701817083 cmake: set policy CMP0218 to NEW to suppress deprecation warning
Added policy CMP0218 to suppress deprecation warnings.
2026-07-16 03:53:15 +05:30
+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. cmake_policy(SET CMP0148 OLD) # CMake 3.27+: use CMake FindPythonInterp and FindPythonLib if available.
endif() 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 # Configure OpenCV CMake hooks
# #