| View Issue Details [ Jump to Notes ] | [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0008231 | CMake | Modules | public | 2008-12-05 06:14 | 2009-01-10 08:20 |
|
| Reporter | cech-kooaba | |
| Assigned To | Alex Neundorf | |
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | |
| Platform | | OS | | OS Version | |
| Product Version | CMake-2-6 | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0008231: No way to specify non-standard location of python installation for FindPythonLibs |
| Description | If the python installation resides in non-standard place (e.g. somewhere in home directory). Other modules use *_ROOT environment variable to specify location of the package. |
| Additional Information | The patch adds additional path to search based on PYTHON_ROOT. |
| Tags | No tags attached. |
|
| Attached Files | FindPythonLibs-use_PYTHON_ROOT.patch [^] (750 bytes) 2008-12-05 06:14 [Show Content] [Hide Content]--- CMakeModules/FindPythonLibs.cmake 2008-09-24 20:34:34.000000000 +0200
+++ CMakeModules/FindPythonLibs.cmake 2008-12-05 10:52:21.000000000 +0100
@@ -27,6 +27,7 @@
NAMES python${_CURRENT_VERSION_NO_DOTS} python${_CURRENT_VERSION}
PATHS
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs
+ $ENV{PYTHON_ROOT}/lib
PATH_SUFFIXES
python${_CURRENT_VERSION}/config
# Avoid finding the .dll in the PATH. We want the .lib.
@@ -46,6 +47,7 @@
PATHS
${PYTHON_FRAMEWORK_INCLUDES}
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/include
+ $ENV{PYTHON_ROOT}/include
PATH_SUFFIXES
python${_CURRENT_VERSION}
)
|
|