forked from pool/cmake
Simon Lees
787f614237
- update to 3.30.1 * Tests: Fix RunCMake.ExternalProject when git is not available + Restore support for exporting INTERFACE with missing dependencies * FindMatlab: Restore support for finding Matlab without any languages * libuv: backport IDNA input/output hardening fixes * IntelLLVM: Update toolchain layout for 2024+ versions * Evaluation of TRANSITIVE_LINK_PROPERTIES isn't considered a usage - Drop cmake-fix-test-without-git.patch which is part of 3.30.1 OBS-URL: https://build.opensuse.org/request/show/1188712 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=596
17 lines
779 B
Diff
17 lines
779 B
Diff
Index: cmake-3.27.7/Modules/FindPythonInterp.cmake
|
|
===================================================================
|
|
--- cmake-3.27.7.orig/Modules/FindPythonInterp.cmake
|
|
+++ cmake-3.27.7/Modules/FindPythonInterp.cmake
|
|
@@ -105,8 +105,9 @@ if(DEFINED PYTHONLIBS_VERSION_STRING)
|
|
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)
|