From b72ff61899cf591790ee120d1863cc200c452e94 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Thu, 22 Aug 2019 13:17:10 +0530 Subject: [PATCH] cmake: fix issue with handling of EXCLUDE_SRCS --- tools/cmake/component.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cmake/component.cmake b/tools/cmake/component.cmake index 6959af26c..d68ea9e1d 100644 --- a/tools/cmake/component.cmake +++ b/tools/cmake/component.cmake @@ -271,7 +271,7 @@ macro(__component_add_sources sources) if(__EXCLUDE_SRCS) foreach(src ${__EXCLUDE_SRCS}) get_filename_component(src "${src}" ABSOLUTE) - list(REMOVE_ITEM source "${src}") + list(REMOVE_ITEM sources "${src}") endforeach() endif() endif() @@ -538,4 +538,4 @@ endfunction() # Wrapper around target_compile_definitions that passes the component name function(component_compile_definitions) target_compile_definitions(${COMPONENT_LIB} PRIVATE ${ARGV}) -endfunction() \ No newline at end of file +endfunction()