diff --git a/arch/arm/src/CMakeLists.txt b/arch/arm/src/CMakeLists.txt index e459f0853c..21bea7ee80 100644 --- a/arch/arm/src/CMakeLists.txt +++ b/arch/arm/src/CMakeLists.txt @@ -18,9 +18,9 @@ # # ############################################################################## -add_subdirectory(common) add_subdirectory(${ARCH_SUBDIR}) add_subdirectory(${NUTTX_CHIP_ABS_DIR} EXCLUDE_FROM_ALL exclude_chip) +add_subdirectory(common) # Include directories (before system ones) as PUBLIC so that it can be exposed # to libboard diff --git a/arch/risc-v/src/CMakeLists.txt b/arch/risc-v/src/CMakeLists.txt index bd3065f2bd..8dda0f61b0 100644 --- a/arch/risc-v/src/CMakeLists.txt +++ b/arch/risc-v/src/CMakeLists.txt @@ -18,8 +18,8 @@ # # ############################################################################## -add_subdirectory(common) add_subdirectory(${NUTTX_CHIP_ABS_DIR} EXCLUDE_FROM_ALL exclude_chip) +add_subdirectory(common) # Include directories (before system ones) as PUBLIC so that it can be exposed # to libboard