2017-10-27 21:43:34 +08:00
|
|
|
# To avoid a lot of empty CMakeLists.txt files we assume it is not an
|
|
|
|
# error if it is missing
|
|
|
|
|
|
|
|
if(EXISTS ${BOARD_DIR}/CMakeLists.txt)
|
2018-09-28 00:10:22 +08:00
|
|
|
if(USING_OUT_OF_TREE_BOARD)
|
2018-09-27 23:15:24 +08:00
|
|
|
set(build_dir boards/${ARCH}/${BOARD})
|
2018-02-12 12:30:57 +08:00
|
|
|
else()
|
2018-09-27 23:15:24 +08:00
|
|
|
unset(build_dir)
|
2018-02-12 12:30:57 +08:00
|
|
|
endif()
|
2018-09-27 23:15:24 +08:00
|
|
|
|
|
|
|
add_subdirectory(${BOARD_DIR} ${build_dir})
|
2017-10-27 21:43:34 +08:00
|
|
|
endif()
|