Private
Public Access
2
0

cmake: Fix tests with multiple python bindings being built

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-06-01 11:21:20 +01:00
parent 99841419ab
commit a177a3f729
2 changed files with 14 additions and 11 deletions

View File

@@ -196,9 +196,7 @@ if (IMRAA)
add_subdirectory (imraa)
endif ()
if (BUILDTESTS)
if (${PYTHONINTERP_FOUND})
enable_testing ()
add_subdirectory (tests)
endif ()
if (BUILDTESTS AND PYTHON_DEFAULT_EXECUTABLE)
enable_testing ()
add_subdirectory (tests)
endif ()