cmake: use PYTHON_EXECUTABLE to find python2

Since most of the distros have symlinks for this.
This commit is contained in:
Azat Khuzhin 2016-10-04 23:21:37 +03:00
parent 83c7cdf426
commit a4d044c0cd

View File

@ -944,9 +944,10 @@ if (NOT EVENT__DISABLE_TESTS)
if (NOT EVENT__DISABLE_REGRESS)
# (We require python to generate the regress tests)
set(PYTHON_EXECUTABLE "python2")
find_package(PythonInterp)
if (PYTHONINTERP_FOUND AND PYTHON_VERSION_STRING VERSION_LESS "3.0.0")
if (PYTHONINTERP_FOUND)
set(__FOUND_USABLE_PYTHON 1)
endif()