summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/arch/CMakeLists.txt3
-rw-r--r--lib/libc/CMakeLists.txt5
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/arch/CMakeLists.txt b/lib/arch/CMakeLists.txt
index d3afc5f2..a52185f0 100644
--- a/lib/arch/CMakeLists.txt
+++ b/lib/arch/CMakeLists.txt
@@ -12,6 +12,9 @@ target_link_libraries(rmm-lib-arch
target_include_directories(rmm-lib-arch
PUBLIC "include"
"include/${RMM_ARCH}"
+ # The CMAKE_INCLUDE_PATH is included here for Yocto builds. the
+ # Yocto recipe will define this variable as part of the build.
+ ${CMAKE_INCLUDE_PATH}
PRIVATE "src/${RMM_ARCH}"
"src/include")
diff --git a/lib/libc/CMakeLists.txt b/lib/libc/CMakeLists.txt
index 1631332d..a2adf37f 100644
--- a/lib/libc/CMakeLists.txt
+++ b/lib/libc/CMakeLists.txt
@@ -12,7 +12,10 @@ if(NOT RMM_ARCH STREQUAL fake_host)
rmm-lib-debug)
target_include_directories(rmm-lib-libc SYSTEM
- PUBLIC "include")
+ PUBLIC "include"
+ # The CMAKE_INCLUDE_PATH is included here for Yocto builds. the
+ # Yocto recipe will define this variable as part of the build.
+ ${CMAKE_INCLUDE_PATH})
target_sources(rmm-lib-libc
PRIVATE "src/abort.c"