You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ra...@apache.org on 2023/11/07 16:39:10 UTC
(nuttx) 02/05: cmake: add include path for special source
This is an automated email from the ASF dual-hosted git repository.
raiden00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 3610b25c9183f950b4f0427e48749b0f2559e2c2
Author: zhanghongyu <zh...@xiaomi.com>
AuthorDate: Thu Oct 26 16:42:37 2023 +0800
cmake: add include path for special source
fix the cmake build error.
Signed-off-by: zhanghongyu <zh...@xiaomi.com>
---
drivers/misc/CMakeLists.txt | 3 +++
drivers/sensors/CMakeLists.txt | 3 +++
fs/vfs/CMakeLists.txt | 3 +++
3 files changed, 9 insertions(+)
diff --git a/drivers/misc/CMakeLists.txt b/drivers/misc/CMakeLists.txt
index f4debb2d73..ad85c35e9d 100644
--- a/drivers/misc/CMakeLists.txt
+++ b/drivers/misc/CMakeLists.txt
@@ -65,6 +65,9 @@ if(CONFIG_BLK_RPMSG)
endif()
if(CONFIG_BLK_RPMSG_SERVER)
+ set_source_files_properties(
+ rpmsgblk_server.c DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/..
+ PROPERTIES INCLUDE_DIRECTORIES ${NUTTX_DIR}/fs/inode)
list(APPEND SRCS rpmsgblk_server.c)
endif()
diff --git a/drivers/sensors/CMakeLists.txt b/drivers/sensors/CMakeLists.txt
index f471a3cbb8..0f297b3fa5 100644
--- a/drivers/sensors/CMakeLists.txt
+++ b/drivers/sensors/CMakeLists.txt
@@ -30,6 +30,9 @@ if(CONFIG_SENSORS)
endif()
if(CONFIG_SENSORS_GPS)
+ set_source_files_properties(
+ gps_uorb.c DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/..
+ PROPERTIES INCLUDE_DIRECTORIES ${NUTTX_DIR}/libs/libc/gpsutils)
list(APPEND SRCS gps_uorb.c)
endif()
diff --git a/fs/vfs/CMakeLists.txt b/fs/vfs/CMakeLists.txt
index 4f9460495e..deae984d49 100644
--- a/fs/vfs/CMakeLists.txt
+++ b/fs/vfs/CMakeLists.txt
@@ -69,6 +69,9 @@ endif()
# Support for timerfd
if(CONFIG_TIMER_FD)
+ set_source_files_properties(
+ fs_timerfd.c DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/..
+ PROPERTIES INCLUDE_DIRECTORIES ${NUTTX_DIR}/sched)
list(APPEND SRCS fs_timerfd.c)
endif()