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-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 1c7a7f752 cmake(bugfix):add INCLUDE_DIRECTORIES for nimble
1c7a7f752 is described below

commit 1c7a7f7529475b0d535e2088a9c4e1532c487156
Author: xuxin19 <[email protected]>
AuthorDate: Wed Nov 13 19:43:19 2024 +0800

    cmake(bugfix):add INCLUDE_DIRECTORIES for nimble
    
    /github/workspace/sources/apps/examples/nimble/nimble_main.c:40:10: fatal 
error: nimble/nimble_npl.h: No such file or directory
       40 | #include "nimble/nimble_npl.h"
          |          ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    ninja: build stopped: subcommand failed.
    
    Signed-off-by: xuxin19 <[email protected]>
---
 examples/nimble/CMakeLists.txt | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/examples/nimble/CMakeLists.txt b/examples/nimble/CMakeLists.txt
index c89267726..ede1b48c9 100644
--- a/examples/nimble/CMakeLists.txt
+++ b/examples/nimble/CMakeLists.txt
@@ -20,7 +20,12 @@
 
 if(CONFIG_EXAMPLES_NIMBLE)
   nuttx_add_application(
-    NAME nimble
-    SRCS ${CMAKE_CURRENT_LIST_DIR}/nimble_main.c
-    DEPENDS nimble)
+    NAME
+    nimble
+    SRCS
+    ${CMAKE_CURRENT_LIST_DIR}/nimble_main.c
+    INCLUDE_DIRECTORIES
+    $<GENEX_EVAL:$<TARGET_PROPERTY:nimble,INCLUDE_DIRECTORIES>>
+    DEPENDS
+    nimble)
 endif()

Reply via email to