[cmake-developers] [CMake 0013216]: FindPythonLibs fails to handle EXACT qualifier
Mantis Bug Tracker
mantis at public.kitware.com
Sun May 13 15:15:25 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=13216
======================================================================
Reported By: Andrey Kamaev
Assigned To:
======================================================================
Project: CMake
Issue ID: 13216
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-05-13 23:15 MSD
Last Modified: 2012-05-13 23:15 MSD
======================================================================
Summary: FindPythonLibs fails to handle EXACT qualifier
Description:
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
Steps to Reproduce:
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")
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-05-13 23:15 Andrey Kamaev New Issue
======================================================================
More information about the cmake-developers
mailing list