From bfb98ba737bd11625d66da7415b5bccfc20e332c Mon Sep 17 00:00:00 2001 From: laokaiyao Date: Fri, 16 Dec 2022 11:40:50 +0800 Subject: [PATCH] i2s_record: use absolute including path Closes: https://github.com/espressif/esp-idf/issues/10343 --- .../i2s/i2s_codec/i2s_es7210_tdm/main/CMakeLists.txt | 2 +- examples/peripherals/i2s/i2s_recorder/main/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/peripherals/i2s/i2s_codec/i2s_es7210_tdm/main/CMakeLists.txt b/examples/peripherals/i2s/i2s_codec/i2s_es7210_tdm/main/CMakeLists.txt index 223b8f89314..b8fba1348e3 100644 --- a/examples/peripherals/i2s/i2s_codec/i2s_es7210_tdm/main/CMakeLists.txt +++ b/examples/peripherals/i2s/i2s_codec/i2s_es7210_tdm/main/CMakeLists.txt @@ -1,3 +1,3 @@ idf_component_register(SRCS "i2s_es7210_record_example.c" - INCLUDE_DIRS "../../../common" + INCLUDE_DIRS "$ENV{IDF_PATH}/examples/peripherals/i2s/common" ) diff --git a/examples/peripherals/i2s/i2s_recorder/main/CMakeLists.txt b/examples/peripherals/i2s/i2s_recorder/main/CMakeLists.txt index 44a620a03ea..5c060abbce5 100644 --- a/examples/peripherals/i2s/i2s_recorder/main/CMakeLists.txt +++ b/examples/peripherals/i2s/i2s_recorder/main/CMakeLists.txt @@ -1,2 +1,2 @@ idf_component_register(SRCS "i2s_recorder_main.c" - INCLUDE_DIRS "../../common") + INCLUDE_DIRS "$ENV{IDF_PATH}/examples/peripherals/i2s/common")