fix(cmake): fix issue with handling of EXCLUDE_SRCS

This commit is contained in:
Dong Heng
2019-11-22 17:18:29 +08:00
parent 782ad8feda
commit dfe73a0bc0

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