[CMake] FindPythonLibs patches for version searching and frameworks

David Gobbi david.gobbi at gmail.com
Tue Sep 15 01:33:41 EDT 2015


Hi All,

I've attached three suggested patches for cmake.

The first is trivial, it simply adds Python 3.5 and 3.6 to the search list.

The second removes the long-deprecated PYTHON_INCLUDE_PATH as a suggestion
for PYTHON_INCLUDE_DIR.

The third does two important things: 1) it fixes bugs for searching for
specific versions of the libs and headers for framework installs of Python
on OS X, and 2) it doesn't search for the include directory until after
library has been found, so that it can use the library version to direct
the search for the include directory.

Any comments on these patches would be appreciated.

Cheers,
 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150914/694d8c1b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-Python-3.6-3.5-to-the-versions-searched-for.patch
Type: application/octet-stream
Size: 1361 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150914/694d8c1b/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Remove-PYTHON_INCLUDE_PATH-as-input-to-FindPythonLib.patch
Type: application/octet-stream
Size: 1270 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150914/694d8c1b/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Match-python-include-dir-to-library-version.patch
Type: application/octet-stream
Size: 4328 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150914/694d8c1b/attachment-0005.obj>


More information about the CMake mailing list