fix(cmakev2/kconfig): make warnings about misspelled Kconfig names consistent with cmakev1

Currently, the cmakev2 implementation of Kconfig name consistency has a
slightly different warning message compared to cmakev2, causing the test
`test_build.py::test_build_with_misspelled_kconfig` to fail.  Make the
warning messages consistent with cmakev1.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata
2025-10-30 17:17:49 +08:00
committed by BOT
parent f28ebc5175
commit 22689ce62e
+2 -2
View File
@@ -235,7 +235,7 @@ function(__collect_kconfig_files_from_directory directory target out_kconfigs ou
if(filename_lower STREQUAL "kconfig")
list(APPEND kconfig_files "${file}")
if(NOT filename STREQUAL "Kconfig")
idf_warn("${filename} should be named 'Kconfig' (uppercase K, rest lowercase).
idf_warn("${filename} file should be named 'Kconfig' (uppercase K, rest lowercase).
Full path to the file: ${file}")
endif()
@@ -243,7 +243,7 @@ function(__collect_kconfig_files_from_directory directory target out_kconfigs ou
elseif(filename_lower STREQUAL "kconfig.projbuild")
list(APPEND projbuild_files "${file}")
if(NOT filename STREQUAL "Kconfig.projbuild")
idf_warn("${filename} should be named 'Kconfig.projbuild' (uppercase K, rest lowercase).
idf_warn("${filename} file should be named 'Kconfig.projbuild' (uppercase K, rest lowercase).
Full path to the file: ${file}")
endif()
endif()