Private
Public Access
2
0

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 <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2017-06-12 14:12:57 +02:00
parent 32196d10e9
commit 09f8b3ac7b

View File

@@ -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 ()