2023-03-30 20:59:31 +02:00
|
|
|
Index: cmake-3.26.2/Modules/FindPythonInterp.cmake
|
2018-01-05 01:49:45 +01:00
|
|
|
===================================================================
|
2023-03-30 20:59:31 +02:00
|
|
|
--- cmake-3.26.2.orig/Modules/FindPythonInterp.cmake
|
|
|
|
+++ cmake-3.26.2/Modules/FindPythonInterp.cmake
|
|
|
|
@@ -92,8 +92,9 @@ if(DEFINED PYTHONLIBS_VERSION_STRING)
|
2018-01-05 01:49:45 +01:00
|
|
|
list(GET _PYTHONLIBS_VERSION 1 _PYTHONLIBS_VERSION_MINOR)
|
|
|
|
list(APPEND _Python_VERSIONS ${_PYTHONLIBS_VERSION_MAJOR}.${_PYTHONLIBS_VERSION_MINOR})
|
|
|
|
endif()
|
|
|
|
-# Search for the current active python version first
|
|
|
|
-list(APPEND _Python_VERSIONS ";")
|
|
|
|
+
|
|
|
|
+# Search python versions from newest to oldest as python3 is the default and
|
|
|
|
+# /usr/bin/python doesn't mean the systemd on SUSE / openSUSE systems
|
|
|
|
list(APPEND _Python_VERSIONS ${_PYTHON_FIND_OTHER_VERSIONS})
|
|
|
|
|
|
|
|
unset(_PYTHON_FIND_OTHER_VERSIONS)
|