From a4d044c0cd97f68b4b3dde414b83d609719d33d7 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 4 Oct 2016 23:21:37 +0300 Subject: [PATCH] cmake: use PYTHON_EXECUTABLE to find python2 Since most of the distros have symlinks for this. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e1183c20b..081f24110e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()