diff --git a/tools/cmake/kconfig.cmake b/tools/cmake/kconfig.cmake index 0401035751..4eb132d966 100644 --- a/tools/cmake/kconfig.cmake +++ b/tools/cmake/kconfig.cmake @@ -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}")