Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0686cdd

Browse files
committed
examples/matter: add the include directory to fix build
data-model-provider changes moved few macros around, so builds are failing on main branch. Add the include directory into cmake file and include the required header file at required source files.
1 parent c208928 commit 0686cdd

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

examples/matter/matter_light/main/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if (NOT CONFIG_EXAMPLE_USE_RAINMAKER_FABRIC)
1212
list(APPEND PRIV_REQUIRES_LIST network_provisioning)
1313
endif()
1414

15+
list(APPEND PRIV_INCLUDE_DIRS "$ENV{ESP_MATTER_PATH}/examples/common")
16+
1517
if (CONFIG_CUSTOM_COMMISSIONABLE_DATA_PROVIDER)
1618
list(APPEND SRCS "matter_cwm/dynamic_commissionable_data_provider.cpp")
1719
endif()

examples/matter/matter_light/main/app_driver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <esp_rmaker_standard_params.h>
1919
#include <app_priv.h>
2020
#include <app_matter_light.h>
21+
#include <utils/common_macros.h>
2122

2223
using namespace esp_matter;
2324
using namespace chip::app::Clusters;

examples/matter/matter_light/main/app_matter_light.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <esp_rmaker_core.h>
2525
#include "app_priv.h"
2626
#include <app_matter.h>
27+
#include <utils/common_macros.h>
2728
#ifndef CONFIG_EXAMPLE_USE_RAINMAKER_FABRIC
2829
#include <matter_commissioning_window_management.h>
2930
#include <protocomm_matter_ble.h>

0 commit comments

Comments
 (0)