mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
change(test_apps): decouple g1_components from BUILD_COMPONENTS property
The BUILD_COMPONENTS build property only exists when building through the Build system v1 compatibility shim. Query the executable library interface's linked-components list instead, so the app does not depend on compatibility-only properties.
This commit is contained in:
@@ -126,7 +126,12 @@ set(expected_components
|
||||
list(SORT expected_components)
|
||||
|
||||
|
||||
idf_build_get_property(build_components BUILD_COMPONENTS)
|
||||
if(IDF_BUILD_V2)
|
||||
get_target_property(library ${project_elf} LIBRARY_INTERFACE)
|
||||
idf_library_get_property(build_components "${library}" LIBRARY_COMPONENTS_LINKED)
|
||||
else()
|
||||
idf_build_get_property(build_components BUILD_COMPONENTS)
|
||||
endif()
|
||||
list(SORT build_components)
|
||||
|
||||
if(NOT "${expected_components}" STREQUAL "${build_components}")
|
||||
|
||||
Reference in New Issue
Block a user