- update to 3.31.0 * cmake-presets(7) files may now include comments using the key "$comment" at any level within the JSON object to provide documentation. * The Ninja Generators and Makefile Generators now produce a "codegen" build target. * The "CMAKE_LINK_LIBRARIES_STRATEGY" variable and corresponding "LINK_LIBRARIES_STRATEGY" target property were added to optionally specify the strategy CMake uses to generate link lines. * The "CMAKE_EXPORT_BUILD_DATABASE" variable, a corresponding "CMAKE_EXPORT_BUILD_DATABASE" environment variable, and an "EXPORT_BUILD_DATABASE" target property, were added to enable exporting C++ module compile commands. This is only supported with Ninja Generators. * The "CMAKE_<LANG>_HOST_COMPILER_ID" and "CMAKE_<LANG>_HOST_COMPILER_VERSION" variables were added, where "<LANG>" is either "CUDA" or "HIP". They are populated when "CMAKE_<LANG>_COMPILER_ID" is "NVIDIA" to identify NVCC's host compiler. * The "file(DOWNLOAD)" and "file(UPLOAD)" commands now verify TLS server certificates for connections to "https://" URLs by default. OBS-URL: https://build.opensuse.org/request/show/1222559 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=608
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)
|