You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/07/10 14:24:53 UTC
[nuttx] 02/07: cmake: define NUTTX_COMMON_DIR
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 88e01fd33593d4bfa1a737715856d5b065d873b5
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Jul 10 10:57:09 2023 +0200
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()