mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue