mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
refactor(lwip): Added on/off switch for LwIP stack
* This switch allows applications to replace lwip with a different IP stack or just make it build if it is a dependency but not actually needed.
This commit is contained in:
@@ -35,7 +35,7 @@ set_property(TARGET ${lwip} APPEND PROPERTY LINK_INTERFACE_MULTIPLICITY 5)
|
||||
else()
|
||||
# Check if LWIP in the build for linux target to adapt esp-tls compatibility layer
|
||||
idf_build_get_property(build_components BUILD_COMPONENTS)
|
||||
if("lwip" IN_LIST build_components)
|
||||
if(CONFIG_LWIP_ENABLE)
|
||||
target_compile_definitions(${COMPONENT_LIB} PRIVATE ESP_TLS_WITH_LWIP=1)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user