diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2014-06-19 00:44:47 +1000 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2014-06-19 00:44:47 +1000 |
| commit | 431060f44d9736052138f911452f74f27271ebf7 (patch) | |
| tree | 6d20ddae0133b853617673b94fbf39c702ac9734 /dev-util/cmake/files/cmake-2.8.10.2-FindPythonInterp.patch | |
| parent | a3b0e72aad01a2007b008fa2047b45680f69600f (diff) | |
| download | kde-431060f44d9736052138f911452f74f27271ebf7.tar.gz kde-431060f44d9736052138f911452f74f27271ebf7.tar.bz2 kde-431060f44d9736052138f911452f74f27271ebf7.zip | |
[dev-util/cmake] Version bump.
Package-Manager: portage-2.2.10
Diffstat (limited to 'dev-util/cmake/files/cmake-2.8.10.2-FindPythonInterp.patch')
| -rw-r--r-- | dev-util/cmake/files/cmake-2.8.10.2-FindPythonInterp.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-util/cmake/files/cmake-2.8.10.2-FindPythonInterp.patch b/dev-util/cmake/files/cmake-2.8.10.2-FindPythonInterp.patch new file mode 100644 index 00000000000..a7e8688ec87 --- /dev/null +++ b/dev-util/cmake/files/cmake-2.8.10.2-FindPythonInterp.patch @@ -0,0 +1,22 @@ +--- Modules/FindPythonInterp.cmake ++++ Modules/FindPythonInterp.cmake +@@ -60,6 +60,10 @@ + + list(APPEND _Python_NAMES python) + ++if (CMAKE_BUILD_TYPE STREQUAL Gentoo) ++ set(_Python_NAMES python) ++endif() ++ + # Search for the current active python version first + find_program(PYTHON_EXECUTABLE NAMES ${_Python_NAMES}) + +@@ -76,7 +80,7 @@ + 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 ${_Python_VERSIONS}) + set(_Python_NAMES python${_CURRENT_VERSION}) + if(WIN32) |
