From 09f8b3ac7bd03543e5c7a6dfc1f5e244f4e177ad Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Mon, 12 Jun 2017 14:12:57 +0200 Subject: [PATCH] tests: Remove checks for mraa.py python module As commented by @alext-mkrs - When cmake runs through these lines, the make naturally hasn't run yet, so there are no such files, so it doesn't set the PYTHON_DEFAULT_INTERP variable and that causes it not to add tests to the list later on Signed-off-by: Brendan Le Foll --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2714cf4..8139ae1 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,10 +9,10 @@ if (PYTHON2INTERP_FOUND AND BUILDSWIGJAVA) endif () if (BUILDSWIGPYTHON) - if (PYTHON2INTERP_FOUND AND EXISTS "${CMAKE_BINARY_DIR}/src/python/python2/mraa.py") + if (PYTHON2INTERP_FOUND) set (PYTHON_DEFAULT_PYTHONPATH "${CMAKE_BINARY_DIR}/src/python/python2") set (PYTHON_DEFAULT_INTERP "${PYTHON2_EXECUTABLE}") - elseif (PYTHON3INTERP_FOUND AND EXISTS "${CMAKE_BINARY_DIR}/src/python/python3/mraa.py") + elseif (PYTHON3INTERP_FOUND) set (PYTHON_DEFAULT_PYTHONPATH "${CMAKE_BINARY_DIR}/src/python/python3") set (PYTHON_DEFAULT_INTERP "${PYTHON3_EXECUTABLE}") endif ()