diff --git a/cmake/nuttx_add_application.cmake b/cmake/nuttx_add_application.cmake index fc12f28518..4701987c6b 100644 --- a/cmake/nuttx_add_application.cmake +++ b/cmake/nuttx_add_application.cmake @@ -161,6 +161,10 @@ function(nuttx_add_application) PRIVATE $>) endif() + else() + set(TARGET "apps_${NAME}") + add_custom_target(${TARGET}) + set_property(GLOBAL APPEND PROPERTY NUTTX_APPS_ONLY_REGISTER ${TARGET}) endif() # store parameters into properties (used during builtin list generation)