Fix build on arch where python 3 is default

Patch by Jimmy Buse
This commit is contained in:
Latif Khalifa
2013-06-20 02:59:04 +02:00
parent ca42589a82
commit 788ea1316f

View File

@@ -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)