mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 08:52:01 +08:00
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>
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user