mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 13:58:58 -04:00
CMake: Get rid of python not found warning when regress tests turned off.
It would warn that python wasn't found when it was, just because the regress tests where turned off... confusing.
This commit is contained in:
parent
e423d42018
commit
d38d798b25
@ -734,7 +734,8 @@ if (NOT EVENT__DISABLE_TESTS)
|
||||
#
|
||||
# Generate Regress tests.
|
||||
#
|
||||
if (NOT EVENT__DISABLE_REGRESS AND PYTHONINTERP_FOUND)
|
||||
if (NOT EVENT__DISABLE_REGRESS)
|
||||
if (PYTHONINTERP_FOUND)
|
||||
message("Generating regress tests...")
|
||||
add_definitions(-DTINYTEST_LOCAL)
|
||||
add_custom_command(
|
||||
@ -791,6 +792,7 @@ if (NOT EVENT__DISABLE_TESTS)
|
||||
else()
|
||||
message(WARNING "Python not found, cannot generate regress tests!")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
#
|
||||
# Test programs.
|
||||
|
Loading…
x
Reference in New Issue
Block a user