From: Per Malmberg Date: Tue, 20 Aug 2019 18:56:24 +0000 (+0200) Subject: Make sure ESP_PLATFORM is defined when processing CMake files. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31cdd3874450f28358a8d96feee383b6b7977383;p=esp-idf Make sure ESP_PLATFORM is defined when processing CMake files. --- diff --git a/tools/cmake/component.cmake b/tools/cmake/component.cmake index a7f099e4bf..8358bf2dfe 100644 --- a/tools/cmake/component.cmake +++ b/tools/cmake/component.cmake @@ -213,6 +213,7 @@ function(__component_get_requirements) __component_write_properties(${component_properties_file}) execute_process(COMMAND "${CMAKE_COMMAND}" + -D "ESP_PLATFORM=1" -D "BUILD_PROPERTIES_FILE=${build_properties_file}" -D "COMPONENT_PROPERTIES_FILE=${component_properties_file}" -D "COMPONENT_REQUIRES_FILE=${component_requires_file}"