mirror of
https://github.com/espressif/esp-idf.git
synced 2026-06-08 22:26:32 +03:00
Currently, the lwip is linked to mbedtls if CONFIG_LWIP_ENABLE is set. This approach works in cmakev1 because only the configuration for BUILD_COMPONENTS is available during component evaluation. However, this is not the case in cmakev2, where the configuration for all components is available. This means that even if CONFIG_LWIP_ENABLE is set, it does not guarantee that the lwip component is included in the build. For cmakev2, modify the check to use a generator expression to ensure that lwip is linked to mbedtls only if lwip is actually included in the build. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>