]> granicus.if.org Git - libevent/commitdiff
cmake: use PYTHON_EXECUTABLE to find python2
authorAzat Khuzhin <a3at.mail@gmail.com>
Tue, 4 Oct 2016 20:21:37 +0000 (23:21 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 4 Oct 2016 20:22:34 +0000 (23:22 +0300)
Since most of the distros have symlinks for this.

CMakeLists.txt

index 3e1183c20b7610126bead95c68c84e26a01b8adf..081f24110e1d0e5c6edb357e6aba80446b533899 100644 (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()