Logo
Explore Help
Sign In
espressif/esp-idf
1
0
Fork 1
You've already forked esp-idf
mirror of https://github.com/espressif/esp-idf.git synced 2025-10-15 16:25:23 +02:00
Code Issues Packages Projects Releases Wiki Activity
Files
adc49dfed747b51a715817fa1d749e79f81a513c
esp-idf/examples/protocols/sockets/tcp_client/main/CMakeLists.txt

16 lines
460 B
CMake
Raw Normal View History

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
2023-09-20 14:05:10 +05:30
idf_build_get_property(target IDF_TARGET)
if(${target} STREQUAL "linux")
lwip/linux: Add lwip support for networking component under linux linux/lwip: Wrap some IO posix functions * to workaourd the FreeRTOS EINTR issue (when building without lwip) * to correctly choose the sub-system based on fd (when building with lwip) -- passing control to either linux/system or to lwip This commit also addapts tapio-if to provide DHCP client by default and configurable settings for static IP
2023-04-03 20:31:51 +02:00
set(requires esp_event esp_stubs protocol_examples_common nvs_flash)
tcp_client example: support for Linux target.
2022-07-23 00:01:50 +05:30
endif()
if("${CONFIG_EXAMPLE_IPV4}" STREQUAL y)
set(tcp_client_ip tcp_client_v4.c)
else()
set(tcp_client_ip tcp_client_v6.c)
endif()
idf_component_register(SRCS "tcp_client_main.c" "${tcp_client_ip}"
INCLUDE_DIRS "."
REQUIRES ${requires})
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 49ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API