From 788ea1316f78a7408bb272a86154f5e1081af1bd Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Thu, 20 Jun 2013 02:59:04 +0200 Subject: [PATCH] Fix build on arch where python 3 is default Patch by Jimmy Buse --- indra/cmake/Python.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/indra/cmake/Python.cmake b/indra/cmake/Python.cmake index 748c8c2be..83a0690c6 100644 --- a/indra/cmake/Python.cmake +++ b/indra/cmake/Python.cmake @@ -20,10 +20,12 @@ if (WINDOWS) [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath] [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath] ) -elseif (EXISTS /etc/debian_version) - # On Debian and Ubuntu, avoid Python 2.4 if possible. - find_program(PYTHON_EXECUTABLE python2.5 python2.3 python PATHS /usr/bin) + +elseif (EXISTS /etc/arch-release) + # On Archlinux, use Python 2 + + find_program(PYTHON_EXECUTABLE python2 PATHS /usr/bin) if (PYTHON_EXECUTABLE) set(PYTHONINTERP_FOUND ON)