From e0ee809d7d971e37342c2d64722b9b98cdfeab3d Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Mon, 30 Mar 2020 18:18:49 +0800 Subject: [PATCH] cmake: fix getting component requirements --- tools/cmake/scripts/component_get_requirements.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake/scripts/component_get_requirements.cmake b/tools/cmake/scripts/component_get_requirements.cmake index 24637008bd..f7a8002b06 100644 --- a/tools/cmake/scripts/component_get_requirements.cmake +++ b/tools/cmake/scripts/component_get_requirements.cmake @@ -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()