MantisBT - CMake
View Issue Details
0012869CMakeModulespublic2012-01-10 05:202012-07-09 06:52
Christian Andersson 
Brad King 
normalminoralways
closedfixed 
WindowsWindows7
CMake 2.8.7 
CMake 2.8.8 
0012869: FindPythonLibs.cmake fails as it searches in the wrong place
When cmake searches for Python libs in Windows it searches in (from FindPythonLibs.cmake):

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs

However, the information might not always reside there. The information could also reside in:

[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs

As it is on my machine. The difference is I suspect is that it is dependent on if a user installs Python for just himself or if Python is installed for all users on the current machine.
Install Python for a single user, not for all users.
I uploaded a patch where one can see what is needed to be added in FindPythonLibs.cmake.

Best Regards
/Christian
No tags attached.
patch FindPythonLibs2.patch (1,459) 2012-01-10 05:20
https://public.kitware.com/Bug/file/4180/FindPythonLibs2.patch
Issue History
2012-01-10 05:20Christian AnderssonNew Issue
2012-01-10 05:20Christian AnderssonFile Added: FindPythonLibs2.patch
2012-01-10 10:00Brad KingNote Added: 0028233
2012-01-10 10:00Brad KingStatusnew => resolved
2012-01-10 10:00Brad KingFixed in Version => CMake 2.8.8
2012-01-10 10:00Brad KingResolutionopen => fixed
2012-01-10 10:00Brad KingAssigned To => Brad King
2012-07-09 06:52David ColeNote Added: 0029948
2012-07-09 06:52David ColeStatusresolved => closed

Notes
(0028233)
Brad King   
2012-01-10 10:00   
Applied, thanks:

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