cmake: fix getting component requirements

This commit is contained in:
Renz Bagaporo 2020-03-30 18:18:49 +08:00
parent 7b7c641076
commit e0ee809d7d

View File

@ -87,7 +87,7 @@ foreach(__component_target ${__component_targets})
list(REMOVE_ITEM __component_requires ${__component_alias} ${__component_name})
endif()
if(__component_requires)
if(__component_priv_requires)
list(REMOVE_DUPLICATES __component_priv_requires)
list(REMOVE_ITEM __component_priv_requires ${__component_alias} ${__component_name})
endif()