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.<div>
<br></div><div> - David<br><br><div class="gmail_quote">On Wed, Jul 6, 2011 at 11:10 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi All,<div><br></div><div>The attached patch changes FindPythonLibs.cmake so that it returns the following variables:</div><div>PYTHON_VERSION</div><div>PYTHON_MAJOR_VERSION</div><div>PYTHON_MINOR_VERSION</div><div>PYTHON_MICRO_VERSION</div>
<div><br></div><div>The purpose of this patch is to allow CMake scripts to perform conditional configuration based on what python version was found, e.g. in case different configuration is required for Python 3 versus Python 2.</div>
<div><br></div><font color="#888888"><div> - David</div>
</font></blockquote></div><br></div>