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:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user