cmake: fix issue with handling of EXCLUDE_SRCS

This commit is contained in:
Mahavir Jain 2019-08-22 13:17:10 +05:30
parent 7bb8b5ba9e
commit b72ff61899

View file

@ -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()
endfunction()