summaryrefslogtreecommitdiff
path: root/dev-util/cmake/files/cmake-2.8.10.2-FindPythonInterp.patch
diff options
context:
space:
mode:
authorAndreas K. Huettel (dilfridge) <dilfridge@gentoo.org>2013-09-07 14:43:17 +0200
committerAndreas K. Huettel (dilfridge) <dilfridge@gentoo.org>2013-09-07 14:43:17 +0200
commit1b90e87f73cf4e74b2fe16ed3855ecc974c8c0ba (patch)
tree475ec53133c361c13c0a1b1793fd1e00c1e0b3ce /dev-util/cmake/files/cmake-2.8.10.2-FindPythonInterp.patch
parentf5837fc796cabbbe572d5b5879eb4ce0aef665b4 (diff)
parente1cdc85bc123113b6b9fb4212effda45ef262185 (diff)
downloadkde-1b90e87f73cf4e74b2fe16ed3855ecc974c8c0ba.tar.gz
kde-1b90e87f73cf4e74b2fe16ed3855ecc974c8c0ba.tar.bz2
kde-1b90e87f73cf4e74b2fe16ed3855ecc974c8c0ba.zip
Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/kde
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.patch22
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)