From 88e01fd33593d4bfa1a737715856d5b065d873b5 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Mon, 10 Jul 2023 10:57:09 +0200 Subject: [PATCH] cmake: define NUTTX_COMMON_DIR --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 632fc5e414..5017043886 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,11 @@ else() LIST_DIRECTORIES true "${NUTTX_DIR}/boards/*/*/${NUTTX_BOARD}") + file( + GLOB NUTTX_COMMON_DIR + LIST_DIRECTORIES true + "${NUTTX_DIR}/boards/*/*/common") + if(EXISTS ${NUTTX_BOARD_DIR}/configs/${NUTTX_CONFIG}/defconfig) set(NUTTX_DEFCONFIG ${NUTTX_BOARD_DIR}/configs/${NUTTX_CONFIG}/defconfig) endif()