From 849088d4678b9f817eb4a484ebe5eedb8ac88322 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 29 Nov 2018 10:39:11 +1100 Subject: [PATCH] cmake: Add ESP_PLATFORM in idf_set_variables() as well (Handles case where idf.py is not being used.) Ref https://github.com/espressif/esp-idf/pull/2601 --- tools/cmake/idf_functions.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/cmake/idf_functions.cmake b/tools/cmake/idf_functions.cmake index 7b389d342..3ea818ec8 100644 --- a/tools/cmake/idf_functions.cmake +++ b/tools/cmake/idf_functions.cmake @@ -62,6 +62,8 @@ macro(idf_set_variables) set(IDF_PROJECT_PATH "${CMAKE_SOURCE_DIR}") + set(ESP_PLATFORM 1 CACHE BOOL INTERNAL) + spaces2list(IDF_COMPONENT_DIRS) spaces2list(IDF_COMPONENTS) spaces2list(IDF_COMPONENT_REQUIRES_COMMON)