[CMake] CMake Python support

Alexander Neundorf a.neundorf-work at gmx.net
Sat Sep 5 12:54:26 EDT 2009


On Wednesday 26 August 2009, Matt McCormick wrote:
> Andreas Pakulat <apaku at ...> writes:
> > On 19.08.09 08:34:26, Philip Lowman wrote:
> > > Speaking of the existing FindPython* scripts they do not support v3.0
> > > yet. Is there a need to maintain support for picking 2.x if two
> > > versions of python are installed?
> >
> > As Py2 and Py3 are basically incompatible IMHO A separate FindPython3
> > would be better than letting the module try to "guess" py2 vs. py3 if
> > both are installed. The project using Python should have decide on wether
> > it works with Py3 or not.
> >
> > Andreas
>
> Python 2.X are also incompatible with each other sometimes, and a user can
> have multiple 2.X and 3.X installed.  IMHO, having different modules for
> every version is not the write way to go.  Just make it a configuration
> variable in FindPythonLibs.cmake

This may become messy. I agree with Andreas that having a separate module for 
Python3 would be better. Since they are not compatible, I don't see a reason 
why one module should search for both.


Alex


More information about the CMake mailing list