Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:GA
cmake3
feature-suse-python-interp-search-order.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File feature-suse-python-interp-search-order.patch of Package cmake3
diff --git a/Modules/FindPythonInterp.cmake b/Modules/FindPythonInterp.cmake index 1e01a99..926f7c2 100644 --- a/Modules/FindPythonInterp.cmake +++ b/Modules/FindPythonInterp.cmake @@ -92,8 +92,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)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor