mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-28 05:52:12 +00:00
IDF_BUILD_V2 does not have BUILD_COMPONENTS build property. Therefore, when IDF_BUILD_V2 is defined, use idf_component_optional_requires and generator expressions instead. I believe that the one-liner should also work with IDF_BUILD_V1, but the change is kept separate to clearly show the difference between IDF_BUILD_V1 and IDF_BUILD_V2. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>