Re: [CMake] Patch - FindPythonLibs provides PYTHON_VERSION

2011-07-06 Thread David Gobbi
I've attached a slightly modified patch, this one uses [0-9A-Za-z\\.]+ as the version regex instead of [0-9\\.]+ just in case the version is a pre-release with "a", "b" etc. as part of the version string. - David On Wed, Jul 6, 2011 at 11:10 AM, David Gobbi wrote: > Hi All, > > The attached pa

[CMake] Patch - FindPythonLibs provides PYTHON_VERSION

2011-07-06 Thread David Gobbi
Hi All, The attached patch changes FindPythonLibs.cmake so that it returns the following variables: PYTHON_VERSION PYTHON_MAJOR_VERSION PYTHON_MINOR_VERSION PYTHON_MICRO_VERSION The purpose of this patch is to allow CMake scripts to perform conditional configuration based on what python version w