原因:CMake 3.12后, FindPythonInterp 及 FindPythonLibs被废弃
解决方法:使用 FindPython3、FindPython2、FindPython替换
实例:CMakeLists.txt中修改即可,如下图

本文介绍CMake3.12版本后FindPythonInterp和FindPythonLibs被弃用,推荐使用FindPython3和FindPython2进行Python模块查找,只需在CMakeLists.txt中做相应调整。
原因:CMake 3.12后, FindPythonInterp 及 FindPythonLibs被废弃
解决方法:使用 FindPython3、FindPython2、FindPython替换
实例:CMakeLists.txt中修改即可,如下图

2127

被折叠的 条评论
为什么被折叠?