mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
0798691bf0
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
10 lines
310 B
CMake
10 lines
310 B
CMake
set(requires "")
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if(${target} STREQUAL "linux")
|
|
list(APPEND requires esp_stubs esp-tls esp_http_server protocol_examples_common nvs_flash)
|
|
endif()
|
|
idf_component_register(SRCS "main.c"
|
|
INCLUDE_DIRS "."
|
|
REQUIRES ${requires})
|