From d0e555a0b4663ebd7b489535aeef517bf113bca5 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Fri, 28 Mar 2025 10:51:35 +0800 Subject: [PATCH] fix(build): fixed build error when compiling with cmake 3.16 --- components/esp_psram/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/esp_psram/CMakeLists.txt b/components/esp_psram/CMakeLists.txt index 619b7d4228..0b7f4c961e 100644 --- a/components/esp_psram/CMakeLists.txt +++ b/components/esp_psram/CMakeLists.txt @@ -43,9 +43,11 @@ idf_component_register(SRCS ${srcs} if(CONFIG_SPIRAM) add_subdirectory(device) -endif() -if(CONFIG_SOC_SPIRAM_XIP_SUPPORTED) - add_subdirectory(xip_impl) + + if(CONFIG_SOC_SPIRAM_XIP_SUPPORTED) + add_subdirectory(xip_impl) + endif() + endif() if(CONFIG_IDF_TARGET_ESP32 AND CONFIG_SPIRAM_CACHE_WORKAROUND AND NOT BOOTLOADER_BUILD)