This is an automated email from the ASF dual-hosted git repository.

linguini 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 f3a728223 netutils/cjson: fix apps path in CMake
f3a728223 is described below

commit f3a7282230bdd1c3f09148d6bc5cc1acd9fd3e4a
Author: Filipe Cavalcanti <[email protected]>
AuthorDate: Tue Mar 24 14:57:03 2026 -0300

    netutils/cjson: fix apps path in CMake
    
    Fix mismatch on apps directory naming when it is cloned under 'nuttx-apps' 
instead of 'apps'.
    
    Signed-off-by: Filipe Cavalcanti <[email protected]>
---
 netutils/cjson/CMakeLists.txt | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/netutils/cjson/CMakeLists.txt b/netutils/cjson/CMakeLists.txt
index 729dbc619..315326793 100644
--- a/netutils/cjson/CMakeLists.txt
+++ b/netutils/cjson/CMakeLists.txt
@@ -40,7 +40,7 @@ if(CONFIG_NETUTILS_CJSON)
           SOURCE_DIR
           ${CMAKE_CURRENT_LIST_DIR}/cJSON
           BINARY_DIR
-          ${CMAKE_BINARY_DIR}/apps/netutils/cjson/cJSON
+          ${NUTTX_APPS_BINDIR}/netutils/cjson/cJSON
       DOWNLOAD_NO_PROGRESS true
       TIMEOUT 30)
 
@@ -51,13 +51,13 @@ if(CONFIG_NETUTILS_CJSON)
     endif()
   endif()
 
-  if(NOT EXISTS ${CMAKE_BINARY_DIR}/apps/include/netutils/cJSON.h
-     OR NOT EXISTS ${CMAKE_BINARY_DIR}/apps/include/netutils/cJSON_Utils.h)
-    file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/apps/include/netutils)
+  if(NOT EXISTS ${NUTTX_APPS_BINDIR}/include/netutils/cJSON.h
+     OR NOT EXISTS ${NUTTX_APPS_BINDIR}/include/netutils/cJSON_Utils.h)
+    file(MAKE_DIRECTORY ${NUTTX_APPS_BINDIR}/include/netutils)
     file(CREATE_LINK ${CMAKE_CURRENT_LIST_DIR}/cJSON/cJSON.h
-         ${CMAKE_BINARY_DIR}/apps/include/netutils/cJSON.h SYMBOLIC)
+         ${NUTTX_APPS_BINDIR}/include/netutils/cJSON.h SYMBOLIC)
     file(CREATE_LINK ${CMAKE_CURRENT_LIST_DIR}/cJSON/cJSON_Utils.h
-         ${CMAKE_BINARY_DIR}/apps/include/netutils/cJSON_Utils.h SYMBOLIC)
+         ${NUTTX_APPS_BINDIR}/include/netutils/cJSON_Utils.h SYMBOLIC)
   endif()
 
   target_sources(apps PRIVATE cJSON/cJSON.c cJSON/cJSON_Utils.c)

Reply via email to