diff --git a/cmake/modules/kconfig.cmake b/cmake/modules/kconfig.cmake index 2746c9b7016..e72cb65a00e 100644 --- a/cmake/modules/kconfig.cmake +++ b/cmake/modules/kconfig.cmake @@ -149,10 +149,10 @@ set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_hardenconfig ${ZEPHYR_BASE}/scripts/kconfig/hardenconfig.py ) +set_ifndef(KCONFIG_TARGETS menuconfig guiconfig hardenconfig) + foreach(kconfig_target - menuconfig - guiconfig - hardenconfig + ${KCONFIG_TARGETS} ${EXTRA_KCONFIG_TARGETS} ) add_custom_target(