diff --git a/tools/cmake/idf_functions.cmake b/tools/cmake/idf_functions.cmake index 7b389d34285..3ea818ec809 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)