Review Request 124185: Improved Python macros for CMake

René J.V. Bertin rjvbertin at
Fri Jun 26 11:16:00 UTC 2015

This is an automatically generated e-mail. To reply, visit:

Review request for KDE Software on Mac OS X and KDevelop.

Repository: kdev-python


CMake's default macros for finding Python (`PythonInterp` and `PythonLibs`) do not do a great job across all platforms at finding an exact Python version, at least not when multiple versions are available and esp. not if the desired version is not the default version.

This patch proposes to use another set of macros, modified from OMPL ( that should conform better to the requirements.
The original `FindPython.cmake` file is covered by a BSD license; the (or one of its) author made me aware of its existence himself.


  CMakeLists.txt 18ecfc0 
  cmake/modules/FindPython.cmake PRE-CREATION 
  parser/CMakeLists.txt 2ac78fc 



For now, only on OS X 10.9.5 under MacPorts with multiple Python versions installed.

I have *not* changed the Python version acceptance logic beyond correcting the check of the `PYTHON_FOUND` boolean.


René J.V. Bertin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list