Skip to content

Commit 1c7a7f7

Browse files
xuxin930xiaoxiang781216
authored andcommitted
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 <xuxin19@xiaomi.com>
1 parent 378afde commit 1c7a7f7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

examples/nimble/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020

2121
if(CONFIG_EXAMPLES_NIMBLE)
2222
nuttx_add_application(
23-
NAME nimble
24-
SRCS ${CMAKE_CURRENT_LIST_DIR}/nimble_main.c
25-
DEPENDS nimble)
23+
NAME
24+
nimble
25+
SRCS
26+
${CMAKE_CURRENT_LIST_DIR}/nimble_main.c
27+
INCLUDE_DIRECTORIES
28+
$<GENEX_EVAL:$<TARGET_PROPERTY:nimble,INCLUDE_DIRECTORIES>>
29+
DEPENDS
30+
nimble)
2631
endif()

0 commit comments

Comments
 (0)