summaryrefslogtreecommitdiffstats
path: root/Modules/FindPythonLibs.cmake
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-30 15:23:00 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-30 15:23:00 (GMT)
commit77e5c1ff973b5a018e3be2b2b60a8d8cd6f0432c (patch)
tree075d9c847bd01ba500bd1b6bc872760e96a709dc /Modules/FindPythonLibs.cmake
parentcf9f19bd2f8737fece102812e8bae51fabe859a0 (diff)
downloadCMake-77e5c1ff973b5a018e3be2b2b60a8d8cd6f0432c.zip
CMake-77e5c1ff973b5a018e3be2b2b60a8d8cd6f0432c.tar.gz
CMake-77e5c1ff973b5a018e3be2b2b60a8d8cd6f0432c.tar.bz2
PYTHON_DEBUG_LIBRARY is only used on Windows.
Diffstat (limited to 'Modules/FindPythonLibs.cmake')
-rw-r--r--Modules/FindPythonLibs.cmake20
1 files changed, 10 insertions, 10 deletions
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
index a35d932..70a0993 100644
--- a/Modules/FindPythonLibs.cmake
+++ b/Modules/FindPythonLibs.cmake
@@ -8,16 +8,16 @@
# PYTHON_DEBUG_LIBRARY = the full path to the debug library found
#
-FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
- NAMES python python21_d python20_d
- PATHS
- /usr/lib
- /usr/local/lib
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]/libs/Debug
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]/libs/Debug
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]/libs
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]/libs
-)
+IF(WIN32)
+ FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
+ NAMES python python21_d python20_d
+ PATHS
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]/libs/Debug
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]/libs/Debug
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]/libs
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]/libs
+ )
+ENDIF(WIN32)
FIND_LIBRARY(PYTHON_LIBRARY
NAMES python python21 python2.1 python20 python2.0