cmake: don't add main component Kconfig twice

This commit is contained in:
Ivan Grokhotkov 2018-09-12 19:31:22 +08:00
parent c4b0f00985
commit 8a38a2332a

View file

@ -78,7 +78,7 @@ function(kconfig_process_config)
# Find Kconfig and Kconfig.projbuild for each component as applicable
# if any of these change, cmake should rerun
foreach(dir ${BUILD_COMPONENT_PATHS} "${CMAKE_SOURCE_DIR}/main")
foreach(dir ${BUILD_COMPONENT_PATHS})
file(GLOB kconfig "${dir}/Kconfig")
if(kconfig)
set(kconfigs "${kconfigs} ${kconfig}")