From 8c816dee14319f05a48ed7ef8de40e6297c1a518 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:56:32 +0900 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e0f194fec..75cc820a4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")