[CMake] CMake Python support

Matt McCormick matt at mmmccormick.com
Wed Aug 26 17:32:31 EDT 2009


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



More information about the CMake mailing list