Skip to content

Commit

Permalink
[ESP32] Fix compiling examples with insights (project-chip#34472)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamdp authored and j-ororke committed Jul 31, 2024
1 parent 5df48e9 commit 9f6897b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/esp32/components/chip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,15 @@ if (CONFIG_SEC_CERT_DAC_PROVIDER)
endif()

if (CONFIG_ENABLE_ESP_INSIGHTS_TRACE)
idf_component_get_property(esp_insights_lib espressif__esp_insights COMPONENT_LIB)
idf_build_get_property(build_components BUILD_COMPONENTS)
# esp_insights can be used as an independent component or through component manager so,
# We should check and add the right component.
if("espressif__esp_insights" IN_LIST build_components)
idf_component_get_property(esp_insights_lib espressif__esp_insights COMPONENT_LIB)
elseif("esp_insights" IN_LIST build_components)
idf_component_get_property(esp_insights_lib esp_insights COMPONENT_LIB)
endif()

list(APPEND chip_libraries $<TARGET_FILE:${esp_insights_lib}>)
endif()

Expand Down

0 comments on commit 9f6897b

Please sign in to comment.