From 6da0b75a12edac1be5832ba96af5e25939950ee8 Mon Sep 17 00:00:00 2001 From: Carl Lundin Date: Wed, 22 Jul 2020 15:07:30 -0700 Subject: [PATCH] Add warning message to help user debug environment variable related build issues with Espressif CMake. --- vendors/espressif/boards/esp32/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vendors/espressif/boards/esp32/CMakeLists.txt b/vendors/espressif/boards/esp32/CMakeLists.txt index 0643aae1e0f..6d3327f4673 100644 --- a/vendors/espressif/boards/esp32/CMakeLists.txt +++ b/vendors/espressif/boards/esp32/CMakeLists.txt @@ -25,6 +25,13 @@ if(AFR_METADATA_MODE) set(PYTHON_DEPS_CHECKED 1) endif() +if(DEFINED ENV{IDF_PATH}) + message("WARNING: IDF_PATH environment variable is not cleared. + If CMake is generating an error, consider clearing the IDF_PATH environment + variable, and generating a clean build. This message can be ignored if + CMake was successful.") +endif() + set(esp_idf_dir "${AFR_VENDORS_DIR}/espressif/esp-idf")