cmake: Fix build failure when -DNUTTX_APPS_DIR is specified
Fix cmake build failure that apps directory is not found when -DNUTTX_APPS_DIR is specified.
This commit is contained in:
parent
97726d9747
commit
8c816dee14
@ -153,7 +153,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")
|
||||
|
Loading…
Reference in New Issue
Block a user