Closed morxa closed 5 years ago
Note that FindPythonInterp
and FindPythonLibs
is also deprecated in cmake 3.12. I thought about submitting a patch that switches to the new FindPython
, but that's not compatible with older systems.
What's the status here? Are there any blockers?
Nope sorry, it just fell off of my radar. Thanks for the patch!
Thank you for merging!
Instead of parsing the Python version string manually (which fails with cmake 3.12.1), use the Python version provided by FindPythonInterp.
Also make sure that we first search for the PythonInterp and then for the PythonLibs to guarantee that they use the same Python versions, as suggested by the cmake manual.