This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 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 0344d5985 examples/nimble_blecent,nimble_bleprph: Fix the CMake app
settings.
0344d5985 is described below
commit 0344d598529fa505a5e8586848fcdf26b7efb35e
Author: Max Kriegleder <[email protected]>
AuthorDate: Mon Oct 26 21:37:01 2026 +0100
examples/nimble_blecent,nimble_bleprph: Fix the CMake app settings.
nimble_bleprph's CMakeLists.txt named the app after
CONFIG_EXAMPLES_NIMBLE_BLECENT_PROGNAME, copied from nimble_blecent.
Building bleprph alone gave a command "blecent" (or none, if the blecent
name was unset); building both failed at configure time with "add_library
cannot create target apps_blecent because another target with the same
name already exists".
Neither CMakeLists.txt passed the PRIORITY and STACKSIZE the Makefiles
pass, so CMake builds ignored those Kconfig options.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Max Kriegleder <[email protected]>
---
examples/nimble_blecent/CMakeLists.txt | 4 ++++
examples/nimble_bleprph/CMakeLists.txt | 6 +++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/examples/nimble_blecent/CMakeLists.txt
b/examples/nimble_blecent/CMakeLists.txt
index 973b6e9ed..854745919 100644
--- a/examples/nimble_blecent/CMakeLists.txt
+++ b/examples/nimble_blecent/CMakeLists.txt
@@ -24,6 +24,10 @@ if(CONFIG_EXAMPLES_NIMBLE_BLECENT)
nuttx_add_application(
NAME
${CONFIG_EXAMPLES_NIMBLE_BLECENT_PROGNAME}
+ PRIORITY
+ ${CONFIG_EXAMPLES_NIMBLE_BLECENT_PRIORITY}
+ STACKSIZE
+ ${CONFIG_EXAMPLES_NIMBLE_BLECENT_STACKSIZE}
SRCS
${CMAKE_CURRENT_LIST_DIR}/nimble_blecent_main.c
${CMAKE_CURRENT_LIST_DIR}/misc.c
diff --git a/examples/nimble_bleprph/CMakeLists.txt
b/examples/nimble_bleprph/CMakeLists.txt
index a745fd4f7..e58170267 100644
--- a/examples/nimble_bleprph/CMakeLists.txt
+++ b/examples/nimble_bleprph/CMakeLists.txt
@@ -23,7 +23,11 @@
if(CONFIG_EXAMPLES_NIMBLE_BLEPRPH)
nuttx_add_application(
NAME
- ${CONFIG_EXAMPLES_NIMBLE_BLECENT_PROGNAME}
+ ${CONFIG_EXAMPLES_NIMBLE_BLEPRPH_PROGNAME}
+ PRIORITY
+ ${CONFIG_EXAMPLES_NIMBLE_BLEPRPH_PRIORITY}
+ STACKSIZE
+ ${CONFIG_EXAMPLES_NIMBLE_BLEPRPH_STACKSIZE}
SRCS
${CMAKE_CURRENT_LIST_DIR}/nimble_bleprph_main.c
${CMAKE_CURRENT_LIST_DIR}/misc.c