MantisBT - CMake
View Issue Details
0013216CMakeModulespublic2012-05-13 15:152012-11-05 14:33
Andrey Kamaev 
Rolf Eike Beer 
normalminoralways
closedfixed 
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013216: FindPythonLibs fails to handle EXACT qualifier
I'm trying to get having PythonLibs exactly the same version as PythonInterpreter. But it never success if I request an EXACT version.

I've tried this without success on Windows 7 and Ubuntu 10.04
Create a CMakeLists.txt having exactly 1 line:

> find_package(PythonLibs 2.7.2)

Run cmake. It outputs:

> -- Found PythonLibs: C:/Python27/libs/python27.lib (found suitable version "2.7.2", required is "2.7.2")

Remove files generated by cmake and change the lists file to

> find_package(PythonLibs 2.7.2 EXACT)

This time it fails:

> -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "2.7.2")

If next I remove the EXACT word without cleaning cmake cache I get:

> -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (found suitable version "2.7.2", required is "2.7.2")
No tags attached.
Issue History
2012-05-13 15:15Andrey KamaevNew Issue
2012-06-05 14:02Rolf Eike BeerAssigned To => Rolf Eike Beer
2012-06-05 14:02Rolf Eike BeerStatusnew => assigned
2012-06-05 14:04Rolf Eike BeerNote Added: 0029614
2012-06-05 14:04Rolf Eike BeerStatusassigned => resolved
2012-06-05 14:04Rolf Eike BeerResolutionopen => fixed
2012-06-05 14:04Rolf Eike BeerFixed in Version => CMake 2.8.9
2012-06-05 14:04Rolf Eike BeerTarget Version => CMake 2.8.9
2012-11-05 14:33David ColeNote Added: 0031443
2012-11-05 14:33David ColeStatusresolved => closed

Notes
(0029614)
Rolf Eike Beer   
2012-06-05 14:04   
Fix pushed to next:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=034a4d25850a203bbeb2f76afa2027a22447723e [^]
(0031443)
David Cole   
2012-11-05 14:33   
Closing resolved issues that have not been updated in more than 4 months.