Browse Source

NAMES syntax

Sebastien Barre 24 years ago
parent
commit
1a2af3f583
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Modules/FindPythonLibs.cmake

+ 4 - 2
Modules/FindPythonLibs.cmake

@@ -8,7 +8,8 @@
 #  PYTHON_DEBUG_LIBRARY = the full path to the debug library found
 #  PYTHON_DEBUG_LIBRARY = the full path to the debug library found
 #
 #
 
 
-FIND_LIBRARY(PYTHON_DEBUG_LIBRARY python python21_d python20_d
+FIND_LIBRARY(PYTHON_DEBUG_LIBRARY 
+  NAMES python python21_d python20_d
   PATHS
   PATHS
   /usr/lib
   /usr/lib
   /usr/local/lib
   /usr/local/lib
@@ -16,7 +17,8 @@ FIND_LIBRARY(PYTHON_DEBUG_LIBRARY python python21_d python20_d
   [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\InstallPath]/libs/Debug
   [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\InstallPath]/libs/Debug
 )
 )
 
 
-FIND_LIBRARY(PYTHON_LIBRARY python python21 python20
+FIND_LIBRARY(PYTHON_LIBRARY 
+  NAMES python python21 python20
   PATHS
   PATHS
   /usr/lib
   /usr/lib
   /usr/local/lib
   /usr/local/lib