소스 검색

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