MantisBT - CMake
View Issue Details
0003080CMakeModulespublic2006-04-04 05:052012-07-09 06:53
Craig Bradney 
Rolf Eike Beer 
lowfeaturealways
closedfixed 
 
CMake 2.8.8CMake 2.8.8 
0003080: FindPythonLibs.cmake could supply PYTHON_VERSION
It would be nice if the Python lib finder could have a found version variable given the significant changes in Python between 2.2 and higher (IIRC thats the correct version number).
No tags attached.
Issue History
2008-10-10 12:39Bill HoffmanNote Added: 0013847
2012-01-30 10:52Chip ChristianNote Added: 0028422
2012-02-21 13:53Rolf Eike BeerNote Added: 0028685
2012-02-21 13:53Rolf Eike BeerAssigned ToBill Hoffman => Rolf Eike Beer
2012-02-21 13:53Rolf Eike BeerTarget Version => CMake 2.8.8
2012-02-21 15:49Rolf Eike BeerNote Added: 0028689
2012-02-21 15:49Rolf Eike BeerStatusassigned => resolved
2012-02-21 15:49Rolf Eike BeerResolutionopen => fixed
2012-02-21 15:49Rolf Eike BeerFixed in Version => CMake 2.8.8
2012-07-09 06:53David ColeNote Added: 0029982
2012-07-09 06:53David ColeStatusresolved => closed

Notes
(0013847)
Bill Hoffman   
2008-10-10 12:39   
Do you know how to detect the version?
(0028422)
Chip Christian   
2012-01-30 10:52   
python -V
FindPythonInterp.cmake uses python --version, but that doesn't work, at least with python 2.4.3
(0028685)
Rolf Eike Beer   
2012-02-21 13:53   
$ grep PY_VERSION[^_] /usr/include/python*/patchlevel.h
/usr/include/python2.7/patchlevel.h:#define PY_VERSION "2.7.2"
/usr/include/python3.2/patchlevel.h:#define PY_VERSION "3.2.2"

Will come up with a patch soon.
(0028689)
Rolf Eike Beer   
2012-02-21 15:49   
Fix pushed to next:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1f581c860dded4bcdc0a7dffa9f7e2d3ec25ac68 [^]
(0029982)
David Cole   
2012-07-09 06:53   
Closing resolved issues that have not been updated in more than 4 months.