feat(cmake): removed CMake policy CMP0146 for compatibility

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x 2024-10-22 00:00:00 +00:00
parent e077849a2c
commit 58ea9e4b35
No known key found for this signature in database

View File

@ -115,7 +115,6 @@ else()
# OpenCV
if (USE_SYSTEM_OPENCV)
cmake_policy(SET CMP0146 OLD)
find_package(OpenCV REQUIRED)
list(APPEND ALL_INCLUDE_DIRS ${OpenCV_INCLUDE_DIRS}/opencv2)
list(APPEND ALL_LIBRARIES opencv_core opencv_videoio)