From: Angus Gratton Date: Wed, 28 Nov 2018 23:39:11 +0000 (+1100) Subject: cmake: Add ESP_PLATFORM in idf_set_variables() as well X-Git-Tag: v3.3-beta2~132^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=849088d4678b9f817eb4a484ebe5eedb8ac88322;p=esp-idf 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 --- diff --git a/tools/cmake/idf_functions.cmake b/tools/cmake/idf_functions.cmake index 7b389d3428..3ea818ec80 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)