Skip to content

Commit 3eb687c

Browse files
committed
Fix ICD management server cluster dependecies
Add ICDConfigurationData to app sources when ICD management server cluster is included in sample, but ICD support is disabled, e.g. lock-app on some platforms. Related to: project-chip#32321 Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent 33aec35 commit 3eb687c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/app/chip_data_model.cmake

+9
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ include("${CHIP_ROOT}/src/data-model-providers/codegen/model.cmake")
2424
function(chip_configure_cluster APP_TARGET CLUSTER)
2525
file(GLOB CLUSTER_SOURCES "${CHIP_APP_BASE_DIR}/clusters/${CLUSTER}/*.cpp")
2626
target_sources(${APP_TARGET} PRIVATE ${CLUSTER_SOURCES})
27+
28+
# Add clusters dependencies
29+
if (CLUSTER STREQUAL "icd-management-server")
30+
# Add ICDConfigurationData when ICD management server cluster is included,
31+
# but ICD support is disabled, e.g. lock-app on some platforms
32+
if(NOT CONFIG_CHIP_ENABLE_ICD_SUPPORT)
33+
target_sources(${APP_TARGET} PRIVATE ${CHIP_APP_BASE_DIR}/icd/server/ICDConfigurationData.cpp)
34+
endif()
35+
endif()
2736
endfunction()
2837

2938
#

0 commit comments

Comments
 (0)