forked from pool/cmake
Dirk Mueller
e0903fafcc
- udate to 3.30.0 * "cmake-presets(7)" files now support schema version "9". "include" fields now expand all macros except "$env{}" and preset-specific macros, i.e., those derived from the fields inside a preset's definition. * The "Compile Features" functionality now implements support for the "cxx_std_26" and "cuda_std_26" meta-features to indicate that the compiler mode must be at least C++26. * The "CMAKE_<LANG>_STANDARD_LATEST" variable was added to describe the latest "<LANG>" language standard CMake supports for the selected compiler. * The "CMAKE_TLS_VERSION" variable and "CMAKE_TLS_VERSION" environment variable were added to specify a default minimum TLS version for connections to "https://" URLs by the "file(DOWNLOAD)" and "file(UPLOAD)" commands. * The "GENERATED" source file property is now visible in all directories. See policy "CMP0163". Policy "CMP0118"'s documentation has been revised to describe its actual effects. * The "TARGET_PROPERTY" generator expression learned to evaluate custom transitive properties. * The "CPack WIX Generator" gained support for WiX Toolset v4. See the "CPACK_WIX_VERSION" variable. * The "FindBoost" module has been removed by policy "CMP0167". Port projects to upstream Boost's "BoostConfig.cmake" package configuration file, for which "find_package(Boost)" now searches. - Add cmake-fix-test-without-git.patch to fix test #567 to be run conditionally when Git is found, upstream planned for 3.30.1 OBS-URL: https://build.opensuse.org/request/show/1185206 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=587
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)
|