Make sure ESP_PLATFORM is defined when processing CMake files.

This commit is contained in:
Per Malmberg 2019-08-20 20:56:24 +02:00 committed by Renz Christian Bagaporo
parent aa087667df
commit 31cdd38744

View file

@ -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}"