mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
fix: Fix protocols example to build without setting target
Protocol examples used to raise an error if the target was not set and `idf.py build` command was used. This commit fix this error and when IDF_TARGET is not set, ESP32 is selected as default target
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
if(${IDF_TARGET} STREQUAL "linux")
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
|
||||
if(${target} STREQUAL "linux")
|
||||
set(requires esp_event esp_stubs protocol_examples_common nvs_flash)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user