python: only add python dir if we have the prerequisites
This means we can depend on the directory existing to check if the prerequisites are met in the tests/ section Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
set_source_files_properties (mraapython.i PROPERTIES CPLUSPLUS ON)
|
||||
set_source_files_properties (mraapython.i PROPERTIES SWIG_FLAGS "-I${CMAKE_BINARY_DIR}/src")
|
||||
|
||||
add_subdirectory (python2)
|
||||
add_subdirectory (python3)
|
||||
if (PYTHON2_LIBRARY)
|
||||
add_subdirectory (python2)
|
||||
endif ()
|
||||
if (PYTHON3_LIBRARY)
|
||||
add_subdirectory (python3)
|
||||
endif ()
|
||||
|
||||
Reference in New Issue
Block a user