Skip to content

Commit

Permalink
cmake: Add ESP_PLATFORM in idf_set_variables() as well
Browse files Browse the repository at this point in the history
(Handles case where idf.py is not being used.)

Ref #2601
  • Loading branch information
projectgus committed Dec 21, 2018
1 parent 25333b5 commit 849088d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/cmake/idf_functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 849088d

Please sign in to comment.