]> granicus.if.org Git - esp-idf/commitdiff
Make sure ESP_PLATFORM is defined when processing CMake files.
authorPer Malmberg <per.malmberg@gmail.com>
Tue, 20 Aug 2019 18:56:24 +0000 (20:56 +0200)
committerRenz Christian Bagaporo <renz@espressif.com>
Wed, 28 Aug 2019 01:44:06 +0000 (09:44 +0800)
tools/cmake/component.cmake

index a7f099e4bfc9cc80679551208cef310698bbcf24..8358bf2dfe9e20ee0cb5d57e43c6898993256dc8 100644 (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}"