diff --git a/CMakeLists.txt b/CMakeLists.txt index 92d93f2fe1..0a724859be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,6 +84,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 #