From 2162a132f149b9dbea655d446a4927d25fd4ad4e Mon Sep 17 00:00:00 2001 From: "sonika.rathi" Date: Fri, 1 Sep 2023 13:24:05 +0200 Subject: [PATCH] fix(example/storage): Add warning for unsupported targets for SD_Card example --- examples/storage/sd_card/sdmmc/main/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/storage/sd_card/sdmmc/main/CMakeLists.txt b/examples/storage/sd_card/sdmmc/main/CMakeLists.txt index 39630ccc57..aaa92955ad 100644 --- a/examples/storage/sd_card/sdmmc/main/CMakeLists.txt +++ b/examples/storage/sd_card/sdmmc/main/CMakeLists.txt @@ -1,2 +1,9 @@ idf_component_register(SRCS "sd_card_example_main.c" INCLUDE_DIRS ".") + + +if(NOT CONFIG_SOC_SDMMC_HOST_SUPPORTED) + fail_at_build_time(sdmmc "" + "Only ESP32 and ESP32-S3 targets are supported." + "Please refer README.md for more details") +endif()