报错内容

Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
在D:\opencv\opencv-4.8.0\cmake的OpenCVUtils.cmake的第一行添加
if(POLICY CMP0148)
cmake_policy(SET CMP0148 OLD)
endif()
if(POLICY CMP0146)
cmake_policy(SET CMP0146 OLD)
endif()
报错现象:如果出现cmake配置与编译后的路径不一致的情况
