From 77e5c1ff973b5a018e3be2b2b60a8d8cd6f0432c Mon Sep 17 00:00:00 2001 From: Berk Geveci Date: Fri, 30 Nov 2001 10:23:00 -0500 Subject: [PATCH] PYTHON_DEBUG_LIBRARY is only used on Windows. --- Modules/FindPythonLibs.cmake | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake index a35d9328f..70a099351 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