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:
Joakim Söderberg 2014-01-22 00:06:21 +01:00
parent e423d42018
commit d38d798b25

View File

@ -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.