Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
cmake: use PYTHON_EXECUTABLE to find python2
Browse files Browse the repository at this point in the history
Since most of the distros have symlinks for this.
  • Loading branch information
azat committed Oct 4, 2016
1 parent 83c7cdf commit a4d044c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit a4d044c

Please sign in to comment.