mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-06 18:56:40 -04:00
cmake: use PYTHON_EXECUTABLE to find python2
Since most of the distros have symlinks for this.
This commit is contained in:
parent
83c7cdf426
commit
a4d044c0cd
@ -944,9 +944,10 @@ if (NOT EVENT__DISABLE_TESTS)
|
|||||||
if (NOT EVENT__DISABLE_REGRESS)
|
if (NOT EVENT__DISABLE_REGRESS)
|
||||||
|
|
||||||
# (We require python to generate the regress tests)
|
# (We require python to generate the regress tests)
|
||||||
|
set(PYTHON_EXECUTABLE "python2")
|
||||||
find_package(PythonInterp)
|
find_package(PythonInterp)
|
||||||
|
|
||||||
if (PYTHONINTERP_FOUND AND PYTHON_VERSION_STRING VERSION_LESS "3.0.0")
|
if (PYTHONINTERP_FOUND)
|
||||||
set(__FOUND_USABLE_PYTHON 1)
|
set(__FOUND_USABLE_PYTHON 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user