diff --git a/CMakeLists.txt b/CMakeLists.txt index 9753cf05aa..8d79f2a2ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,6 +85,10 @@ if(POLICY CMP0146) cmake_policy(SET CMP0146 OLD) # CMake 3.27+: use CMake FindCUDA if available. endif() +if(POLICY CMP0148) + cmake_policy(SET CMP0148 OLD) # CMake 3.27+: use CMake FindPythonInterp and FindPythonLib if available. +endif() + # # Configure OpenCV CMake hooks #