ci(cmakev2): suppress CMake warning for unused CONFIGDEP_ENABLE variable

cmakev2 does not use configdep yet, so the manually specified variable
CONFIGDEP_ENABLE is unused. CMake warns about it, which causes CI to
fail. Until configdep is adopted by cmakev2, suppress the warning.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jan Beran
2026-06-02 01:26:10 +08:00
committed by BOT
co-authored by Cursor
parent 3abb4c095b
commit 9881fa8b12
+5
View File
@@ -17,6 +17,11 @@ set(CMAKE_MODULE_PATH
# for both cmakev1 and cmakev2.
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake)
# Suppress CMake warning: "Manually-specified variables were not used by the project: CONFIGDEP_ENABLE"
# (CONFIGDEP_ENABLE is passed by idf.py but only used in the cmake v1 project() flow in project.cmake)
# FIXME: When cmakev2 will start supporting configdep, this can be removed.
set(_idf_ignore_configdep_enable "${CONFIGDEP_ENABLE}")
# The gdbinit.cmake file from cmakev1 contains a single function,
# __generate_gdbinit, which is used in the generation of
# project_description.json.