summaryrefslogtreecommitdiff
path: root/Modules/FindPythonLibs.cmake
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-07-15 21:10:10 -0400
committerSebastien Barre <sebastien.barre@kitware.com>2001-07-15 21:10:10 -0400
commitd823632c8bc2d9d66e3350e4ceb357f3227c7ea2 (patch)
treeabaea60866746346d091d33df3363ced89a4f48a /Modules/FindPythonLibs.cmake
parentae25b63b6a9741eed5ded151e1a927fb619c0315 (diff)
downloadcmake-d823632c8bc2d9d66e3350e4ceb357f3227c7ea2.tar.gz
update include/lib path to Python (Linux)
Diffstat (limited to 'Modules/FindPythonLibs.cmake')
-rw-r--r--Modules/FindPythonLibs.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
index 08ae89b7df..22ea1425ff 100644
--- a/Modules/FindPythonLibs.cmake
+++ b/Modules/FindPythonLibs.cmake
@@ -18,9 +18,11 @@ FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
)
FIND_LIBRARY(PYTHON_LIBRARY
- NAMES python python21 python20
+ NAMES python python21 python2.1 python20 python2.0
PATHS
/usr/lib
+ /usr/lib/python2.1/config
+ /usr/lib/python2.0/config
/usr/local/lib
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath]/libs
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\InstallPath]/libs
@@ -28,6 +30,8 @@ FIND_LIBRARY(PYTHON_LIBRARY
FIND_PATH(PYTHON_INCLUDE_PATH Python.h
/usr/include
+ /usr/include/python2.1
+ /usr/include/python2.0
/usr/local/include
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath]/include
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\InstallPath]/include