[CMake] FindPythonLibs Bug #0013794 fix

Adam Wolf adamwolf at feelslikeburning.com
Fri Apr 12 16:57:58 EDT 2013


Hi folks,

While we're talking Python, I wrote a small patch to FindPythonLibs
that looks to see if PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR are
set (by FindPythonInterp), and if so, it puts them in the python
versions list, after the user specified versions, but before the
Python3, Python2, and Python1 versions.

I know you want to redo the FindPython stuff, but I'm hoping this is a
small enough patch, with hopefully minimal side-effects, that will
help fix the CMake experience on both Fedora
(https://bugzilla.redhat.com/show_bug.cgi?id=876118) and Ubuntu as
well as any other other system that has newer libraries installed than
the default interpreter.

This appears to fix Bug #0013794.
http://public.kitware.com/Bug/view.php?id=13794

I have attached the patch as a file, but I can also do a pull request
or any other requested code submission process.

Adam Wolf
Wayne and Layne, LLC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adamwwolf-FindPythonLibs.patch
Type: application/octet-stream
Size: 1049 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130412/ae068db0/attachment.obj>


More information about the CMake mailing list