]> granicus.if.org Git - esp-idf/commitdiff
cmake: Add ESP_PLATFORM in idf_set_variables() as well
authorAngus Gratton <angus@espressif.com>
Wed, 28 Nov 2018 23:39:11 +0000 (10:39 +1100)
committerAngus Gratton <gus@projectgus.com>
Fri, 21 Dec 2018 07:59:28 +0000 (18:59 +1100)
(Handles case where idf.py is not being used.)

Ref https://github.com/espressif/esp-idf/pull/2601

tools/cmake/idf_functions.cmake

index 7b389d34285e6123053163ed22b43ddb304e2e2b..3ea818ec80903db8d2823b6d9ffbbbce8fef99d1 100644 (file)
@@ -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)