View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012869CMakeModulespublic2012-01-10 05:202012-07-09 06:52
ReporterChristian Andersson 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformWindowsOSWindowsOS Version7
Product VersionCMake 2.8.7 
Target VersionFixed in VersionCMake 2.8.8 
Summary0012869: FindPythonLibs.cmake fails as it searches in the wrong place
DescriptionWhen 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.
Steps To ReproduceInstall Python for a single user, not for all users.
Additional InformationI uploaded a patch where one can see what is needed to be added in FindPythonLibs.cmake.

Best Regards
/Christian
TagsNo tags attached.
Attached Filespatch file icon FindPythonLibs2.patch [^] (1,459 bytes) 2012-01-10 05:20 [Show Content]

 Relationships

  Notes
(0028233)
Brad King (manager)
2012-01-10 10:00

Applied, thanks:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a04ced3b [^]
(0029948)
David Cole (manager)
2012-07-09 06:52

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-01-10 05:20 Christian Andersson New Issue
2012-01-10 05:20 Christian Andersson File Added: FindPythonLibs2.patch
2012-01-10 10:00 Brad King Note Added: 0028233
2012-01-10 10:00 Brad King Status new => resolved
2012-01-10 10:00 Brad King Fixed in Version => CMake 2.8.8
2012-01-10 10:00 Brad King Resolution open => fixed
2012-01-10 10:00 Brad King Assigned To => Brad King
2012-07-09 06:52 David Cole Note Added: 0029948
2012-07-09 06:52 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team