mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
cmake: set policy CMP0218 to NEW to suppress deprecation warning
Added policy CMP0218 to suppress deprecation warnings.
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user