瀏覽代碼

PYTHON_DEBUG_LIBRARY is only used on Windows.

Berk Geveci 24 年之前
父節點
當前提交
77e5c1ff97
共有 1 個文件被更改,包括 10 次插入10 次删除
  1. 10 10
      Modules/FindPythonLibs.cmake

+ 10 - 10
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