mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04:00
cmake/win32: fix running regress, but fixing finding python2 interpreter
Could not find executable C:/projects/libevent/build/bin/regress Looked in the following places: C:/projects/libevent/build/bin/regress C:/projects/libevent/build/bin/regress.exe ... 9/13 Test #9: regress__WIN32_debug ................***Not Run 0.00 sec Link: https://ci.appveyor.com/project/nmathewson/libevent/build/2.1.6.271/job/wvy2jp7uojcut5cx#L1256 Fixes: #411
This commit is contained in:
parent
236161611f
commit
bcb990ab7c
@ -944,7 +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)
|
||||||
|
find_program(FIND_PYTHON2 python2)
|
||||||
|
if (FIND_PYTHON2)
|
||||||
set(PYTHON_EXECUTABLE "python2")
|
set(PYTHON_EXECUTABLE "python2")
|
||||||
|
endif()
|
||||||
find_package(PythonInterp)
|
find_package(PythonInterp)
|
||||||
|
|
||||||
if (PYTHONINTERP_FOUND)
|
if (PYTHONINTERP_FOUND)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user