cmake: fix getting component requirements

This commit is contained in:
Renz Bagaporo 2020-03-30 18:18:49 +08:00 committed by bot
parent 573d5f4eb0
commit bd8f616f82

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