Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 393420 Details for
Bug 535928
dev-util/cmake-3.1.0 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cmake-3.1.0-FindPythonInterp.patch
cmake-3.1.0-FindPythonInterp.patch (text/plain), 1.05 KB, created by
Eugene Shalygin
on 2015-01-07 13:42:10 UTC
(
hide
)
Description:
cmake-3.1.0-FindPythonInterp.patch
Filename:
MIME Type:
Creator:
Eugene Shalygin
Created:
2015-01-07 13:42:10 UTC
Size:
1.05 KB
patch
obsolete
>--- Modules/FindPythonInterp.cmake.orig 2015-01-06 11:50:03.376357898 +0100 >+++ Modules/FindPythonInterp.cmake 2015-01-06 12:25:48.614989290 +0100 >@@ -75,6 +75,11 @@ > else() > set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON3_VERSIONS} ${_PYTHON2_VERSIONS} ${_PYTHON1_VERSIONS}) > endif() >+ >+if (CMAKE_BUILD_TYPE STREQUAL Gentoo) >+ set(_Python_NAMES python) >+endif() >+ > find_program(PYTHON_EXECUTABLE NAMES ${_Python_NAMES}) > > # Set up the versions we know about, in the order we will search. Always add >@@ -99,12 +104,13 @@ > unset(_PYTHON3_VERSIONS) > > # Search for newest python version if python executable isn't found >-if(NOT PYTHON_EXECUTABLE) >+if(NOT PYTHON_EXECUTABLE AND NOT CMAKE_BUILD_TYPE STREQUAL Gentoo) > foreach(_CURRENT_VERSION IN LISTS _Python_VERSIONS) > set(_Python_NAMES python${_CURRENT_VERSION}) > if(WIN32) > list(APPEND _Python_NAMES python) > endif() >+ > find_program(PYTHON_EXECUTABLE > NAMES ${_Python_NAMES} > PATHS [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 535928
:
393416
|
393418
| 393420