Skip to content

Commit

Permalink
cmake: Fix build failure when -DNUTTX_APPS_DIR is specified
Browse files Browse the repository at this point in the history
Fix cmake build failure that apps directory is not found
when -DNUTTX_APPS_DIR is specified.
  • Loading branch information
SPRESENSE committed Dec 4, 2024
1 parent 25e3717 commit 96b27b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ endif()
include(nuttx_kconfig)
nuttx_export_kconfig_by_value(${NUTTX_DEFCONFIG} "CONFIG_APPS_DIR")

if(NOT CONFIG_APPS_DIR)
if((NOT NUTTX_APPS_DIR) AND (NOT CONFIG_APPS_DIR))
if(EXISTS "${NUTTX_DIR}/../apps")
set(NUTTX_APPS_DIR "${NUTTX_DIR}/../apps")
elseif(EXISTS "${NUTTX_DIR}/../nuttx-apps")
Expand Down

0 comments on commit 96b27b1

Please sign in to comment.