--- weechat-1.9/cmake/FindPython.cmake.old	2017-06-25 03:20:52.000000000 -0500
+++ weechat-1.9/cmake/FindPython.cmake	2017-09-24 18:04:48.181662013 -0500
@@ -67,7 +67,7 @@
     )
   if(ENABLE_PYTHON3)
     find_library(PYTHON_LIBRARY
-      NAMES python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python2.7 python2.6 python2.5 python
+      NAMES python3.7m python3.7 python3.6m python3.6 python3.5m python3.5 python3.4m python3.4 python3.3 python3.2 python3.1 python3.0 python3
       HINTS ${PYTHON_POSSIBLE_LIB_PATH}
       )
   else()